Functions | |
int | rf233_get_txp (void) |
Get transmission power. More... | |
int | rf233_interrupt_poll (void) |
RF233 radio process poll function, to be called from the interrupt handler to poll the radio process. More... | |
int | rf233_set_txp (uint8_t txp) |
Set transmission power. More... | |
uint8_t | rf233_status (void) |
int | rf_get_channel (void) |
Get radio channel. More... | |
int | rf_set_channel (uint8_t ch) |
Set radio channel. More... | |
void | SetIEEEAddr (uint8_t *ieee_addr) |
void | SetPanId (uint16_t panId) |
void | SetShortAddr (uint16_t addr) |
int rf233_get_txp | ( | void | ) |
Get transmission power.
References PHY_TX_PWR_TXP, PRINTF, RF233_REG_PHY_TX_PWR_CONF, and trx_reg_read().
int rf233_interrupt_poll | ( | void | ) |
RF233 radio process poll function, to be called from the interrupt handler to poll the radio process.
0 | success |
References flag_transmit, IRQ_BAT_LOW, IRQ_CCA_ED_DONE, IRQ_PLL_LOCK, IRQ_PLL_UNLOCK, IRQ_RX_ADDRESS_MATCH, IRQ_TRX_DONE, IRQ_TRXBUF_ACCESS_VIOLATION, pending_frame, PRINTF, process_poll(), RF233_COMMAND, RF233_REG_IRQ_STATUS, RF233_REG_TRX_STATE, trx_reg_read(), TRX_STATE_TRAC_STATUS, and TRXCMD_RX_AACK_ON.
Referenced by PROCESS_THREAD(), and rf233_init().
int rf233_set_txp | ( | uint8_t | txp | ) |
Set transmission power.
txp | The transmission power |
-1 | Fail: transmission power out of bounds |
0 | Success |
References PRINTF, RF233_REG_PHY_TX_PWR_CONF, trx_reg_write(), and TXP_M17.
uint8_t rf233_status | ( | void | ) |
References RF233_REG_TRX_STATUS, trx_reg_read(), and TRX_STATUS.
Referenced by off(), on(), rf233_channel_clear(), rf233_init(), rf233_prepare(), rf233_receiving_packet(), rf233_transmit(), and rf_generate_random_seed().
int rf_get_channel | ( | void | ) |
Get radio channel.
References PHY_CC_CCA_CHANNEL, RF212_REG_PHY_CC_CCA, RF233_REG_PHY_CC_CCA, and trx_reg_read().
Referenced by main().
int rf_set_channel | ( | uint8_t | ch | ) |
Set radio channel.
ch | The radio channel |
-1 | Fail: channel number out of bounds |
0 | Success |
References PHY_CC_CCA_CHANNEL, PRINTF, RF212_REG_PHY_CC_CCA, RF233_REG_PHY_CC_CCA, trx_reg_read(), and trx_reg_write().
Referenced by main().
void SetIEEEAddr | ( | uint8_t * | ieee_addr | ) |
References trx_reg_write().
Referenced by main().
void SetPanId | ( | uint16_t | panId | ) |
References trx_reg_write().
Referenced by rf212_init(), and rf233_init().
void SetShortAddr | ( | uint16_t | addr | ) |
References trx_reg_write().