Macros | |
#define | IRQ_CLEAR_VALUE 0xff |
#define | PHY_CRC_SIZE 2 |
#define | TRX_RPC_REG_VALUE 0xeb |
Functions | |
void | PHY_DataReq (uint8_t *data) |
int8_t | PHY_EdReq (void) |
void | PHY_EncryptReq (uint8_t *text, uint8_t *key) |
void | PHY_Init (void) |
uint16_t | PHY_RandomReq (void) |
void | PHY_SetBand (uint8_t band) |
void | PHY_SetChannel (uint8_t channel) |
void | PHY_SetIEEEAddr (uint8_t *ieee_addr) |
void | PHY_SetPanId (uint16_t panId) |
void | PHY_SetRxState (bool rx) |
void | PHY_SetShortAddr (uint16_t addr) |
void | PHY_SetTxPower (uint8_t txPower) |
void | PHY_Sleep (void) |
void | PHY_TaskHandler (void) |
void | PHY_Wakeup (void) |
static void | phySetChannel (void) |
static void | phySetRxState (void) |
static void | phyTrxSetState (uint8_t state) |
Variables | |
static uint8_t | phyBand |
static uint8_t | phyChannel |
static uint8_t | phyRxBuffer [128] |
static bool | phyRxState |
static PhyState_t | phyState = PHY_STATE_INITIAL |
#define IRQ_CLEAR_VALUE 0xff |
Referenced by PHY_DataReq(), and phySetRxState().
#define PHY_CRC_SIZE 2 |
Referenced by PHY_DataReq(), and PHY_TaskHandler().
#define TRX_RPC_REG_VALUE 0xeb |
Referenced by PHY_Init(), and PHY_RandomReq().
enum PhyState_t |
void PHY_DataReq | ( | uint8_t * | data | ) |
int8_t PHY_EdReq | ( | void | ) |
References IRQ_STATUS_REG_s, PHY_ED_LEVEL_REG, PHY_RSSI_BASE_VAL, phySetRxState(), phyTrxSetState(), and TRX_CMD_RX_ON.
void PHY_EncryptReq | ( | uint8_t * | text, |
uint8_t * | key | ||
) |
References AES_DIR_ENCRYPT, AES_MODE_ECB, sal_aes_exec(), sal_aes_read(), and sal_aes_setup().
void PHY_Init | ( | void | ) |
uint16_t PHY_RandomReq | ( | void | ) |
void PHY_SetBand | ( | uint8_t | band | ) |
References phyBand, and phySetChannel().
void PHY_SetChannel | ( | uint8_t | channel | ) |
References phyChannel, and phySetChannel().
void PHY_SetIEEEAddr | ( | uint8_t * | ieee_addr | ) |
References IEEE_ADDR_0_REG, IEEE_ADDR_1_REG, IEEE_ADDR_2_REG, IEEE_ADDR_3_REG, IEEE_ADDR_4_REG, IEEE_ADDR_5_REG, IEEE_ADDR_6_REG, and IEEE_ADDR_7_REG.
void PHY_SetPanId | ( | uint16_t | panId | ) |
References PAN_ID_0_REG, and PAN_ID_1_REG.
void PHY_SetRxState | ( | bool | rx | ) |
References phyRxState, and phySetRxState().
void PHY_SetShortAddr | ( | uint16_t | addr | ) |
References CSMA_SEED_0_REG, SHORT_ADDR_0_REG, and SHORT_ADDR_1_REG.
void PHY_SetTxPower | ( | uint8_t | txPower | ) |
References PHY_TX_PWR_REG_s.
void PHY_Sleep | ( | void | ) |
References PHY_STATE_SLEEP, phyState, phyTrxSetState(), TRX_CMD_TRX_OFF, and TRXPR_REG_s.
void PHY_TaskHandler | ( | void | ) |
References PHY_DataInd_t::data, IRQ_STATUS_REG_s, PHY_DataInd_t::lqi, PHY_CRC_SIZE, PHY_DataConf(), PHY_DataInd(), PHY_ED_LEVEL_REG, PHY_RSSI_BASE_VAL, PHY_STATE_IDLE, PHY_STATE_SLEEP, PHY_STATUS_CHANNEL_ACCESS_FAILURE, PHY_STATUS_ERROR, PHY_STATUS_NO_ACK, PHY_STATUS_SUCCESS, phyRxBuffer, phySetRxState(), phyState, PHY_DataInd_t::rssi, PHY_DataInd_t::size, status, TRAC_STATUS_CHANNEL_ACCESS_FAILURE, TRAC_STATUS_NO_ACK, TRAC_STATUS_SUCCESS, TRX_CTRL_2_REG_s, TRX_FRAME_BUFFER, TRX_STATE_REG_s, TRX_STATUS_REG_s, TRX_STATUS_RX_AACK_ON, TRX_STATUS_TX_ARET_ON, and TST_RX_LENGTH_REG.
void PHY_Wakeup | ( | void | ) |
References PHY_STATE_IDLE, phySetRxState(), phyState, and TRXPR_REG_s.
|
static |
References CC_CTRL_0_REG, CC_CTRL_1_REG_s, PHY_CC_CCA_REG_s, phyBand, and phyChannel.
Referenced by PHY_SetBand(), and PHY_SetChannel().
|
static |
References IRQ_CLEAR_VALUE, IRQ_STATUS_REG, phyRxState, phyTrxSetState(), TRX_CMD_RX_AACK_ON, and TRX_CMD_TRX_OFF.
Referenced by PHY_EdReq(), PHY_RandomReq(), PHY_SetRxState(), PHY_TaskHandler(), and PHY_Wakeup().
|
static |
References state, TRX_CMD_FORCE_TRX_OFF, TRX_STATE_REG, TRX_STATUS_REG_s, and TRX_STATUS_TRX_OFF.
Referenced by PHY_DataReq(), PHY_EdReq(), PHY_Init(), PHY_RandomReq(), PHY_Sleep(), and phySetRxState().
|
static |
Referenced by PHY_Init(), PHY_SetBand(), and phySetChannel().
|
static |
Referenced by PHY_SetChannel(), and phySetChannel().
|
static |
Referenced by PHY_TaskHandler().
|
static |
Referenced by PHY_Init(), PHY_SetRxState(), and phySetRxState().
|
static |
Referenced by PHY_DataReq(), PHY_Init(), PHY_Sleep(), PHY_TaskHandler(), and PHY_Wakeup().