Microchip® Advanced Software Framework

phy.h File Reference

AT86RF212B PHY interface.

Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.

#include <stdint.h>
#include <stdbool.h>

Data Structures

struct  PHY_DataInd_t
 
#define PHY_RSSI_BASE_VAL_BPSK_20   (-100)
 
#define PHY_RSSI_BASE_VAL_BPSK_40   (-99)
 
#define PHY_RSSI_BASE_VAL_OQPSK_SIN_RC_100   (-98)
 
#define PHY_RSSI_BASE_VAL_OQPSK_SIN_250   (-98)
 
#define PHY_RSSI_BASE_VAL_OQPSK_RC_250   (-97)
 
#define PHY_HAS_RANDOM_NUMBER_GENERATOR
 
#define PHY_HAS_AES_MODULE
 
enum  {
  PHY_STATUS_SUCCESS = 0,
  PHY_STATUS_CHANNEL_ACCESS_FAILURE = 1,
  PHY_STATUS_NO_ACK = 2,
  PHY_STATUS_ERROR = 3
}
 
typedef struct PHY_DataInd_t PHY_DataInd_t
 
void PHY_Init (void)
 
void PHY_SetRxState (bool rx)
 
void PHY_SetChannel (uint8_t channel)
 
void PHY_SetBand (uint8_t band)
 
void PHY_SetModulation (uint8_t modulation)
 
void PHY_SetPanId (uint16_t panId)
 
void PHY_SetShortAddr (uint16_t addr)
 
void PHY_Sleep (void)
 
void PHY_Wakeup (void)
 
void PHY_DataReq (uint8_t *data)
 
void PHY_DataConf (uint8_t status)
 
void PHY_DataInd (PHY_DataInd_t *ind)
 
void PHY_TaskHandler (void)
 
void PHY_SetIEEEAddr (uint8_t *ieee_addr)
 
uint16_t PHY_RandomReq (void)
 
void PHY_EncryptReq (uint8_t *text, uint8_t *key)
 

#define PHY_HAS_AES_MODULE
#define PHY_HAS_RANDOM_NUMBER_GENERATOR
#define PHY_RSSI_BASE_VAL_BPSK_20   (-100)

Referenced by phyRssiBaseVal().

#define PHY_RSSI_BASE_VAL_BPSK_40   (-99)

Referenced by phyRssiBaseVal().

#define PHY_RSSI_BASE_VAL_OQPSK_RC_250   (-97)

Referenced by phyRssiBaseVal().

#define PHY_RSSI_BASE_VAL_OQPSK_SIN_250   (-98)

Referenced by phyRssiBaseVal().

#define PHY_RSSI_BASE_VAL_OQPSK_SIN_RC_100   (-98)

Referenced by phyRssiBaseVal().

typedef struct PHY_DataInd_t PHY_DataInd_t

anonymous enum
Enumerator
PHY_STATUS_SUCCESS 
PHY_STATUS_CHANNEL_ACCESS_FAILURE 
PHY_STATUS_NO_ACK 
PHY_STATUS_ERROR 

void PHY_DataConf ( uint8_t  status)
void PHY_EncryptReq ( uint8_t *  text,
uint8_t *  key 
)
void PHY_SetBand ( uint8_t  band)

References phyBand, and phySetChannel().

Referenced by appInit().

void PHY_SetChannel ( uint8_t  channel)

References phyChannel, and phySetChannel().

Referenced by appInit().

void PHY_SetIEEEAddr ( uint8_t *  ieee_addr)

References IEEE_ADDR_0_REG, and trx_reg_write().

void PHY_SetModulation ( uint8_t  modulation)

References phyModulation, and phySetChannel().

Referenced by appInit().

void PHY_SetPanId ( uint16_t  panId)

References PAN_ID_0_REG, PAN_ID_1_REG, and phyWriteRegister().

Referenced by NWK_SetPanId().

void PHY_SetRxState ( bool  rx)

References phyRxState, and phySetRxState().

Referenced by appInit().

void PHY_SetShortAddr ( uint16_t  addr)
void PHY_Sleep ( void  )
void PHY_Wakeup ( void  )