bee 2.0.0.0
|
Functions | |
void | bee_cfg_setup (bee_cfg_t *cfg) |
Config Object Initialization function. | |
err_t | bee_init (bee_t *ctx, bee_cfg_t *cfg) |
Initialization function. | |
void | bee_generic_transfer (bee_t *ctx, uint8_t *wr_buf, uint16_t wr_len, uint8_t *rd_buf, uint16_t rd_len) |
Generic transfer function. | |
void | bee_write_byte_short (bee_t *ctx, uint8_t reg_address, uint8_t write_data) |
Write the byte of data to the short register address function. | |
uint8_t | bee_read_byte_short (bee_t *ctx, uint8_t reg_address) |
Read the byte of data from the short register address function. | |
void | bee_write_byte_long (bee_t *ctx, uint16_t reg_address, uint8_t write_data) |
Write the byte of data to the long register address function. | |
uint8_t | bee_read_byte_long (bee_t *ctx, uint16_t reg_address) |
Read the byte of data from the long register address function. | |
void | bee_hw_reset (bee_t *ctx) |
Hardware reset function. | |
void | bee_power_reset (bee_t *ctx) |
Power reset function. | |
void | bee_bb_reset (bee_t *ctx) |
Baseband reset function. | |
void | bee_mac_reset (bee_t *ctx) |
MAC reset function. | |
void | bee_soft_reset (bee_t *ctx) |
Soft reset function. | |
void | bee_rf_reset (bee_t *ctx) |
RF state machine reset function. | |
void | bee_enable_interrupt (bee_t *ctx) |
Enable interrupt function. | |
void | bee_set_channel (bee_t *ctx, uint8_t n_channel) |
Set channel function. | |
void | bee_set_cca_mode (bee_t *ctx, uint8_t cca_mode) |
Set CCA mode function. | |
void | bee_set_rssi_mode (bee_t *ctx, uint8_t rssi_mode) |
Set RSSI mode function. | |
void | bee_nonbeacon_pan_coordinator_device (bee_t *ctx) |
Set device as PAN coordinator function. | |
void | bee_nonbeacon_coordinator_device (bee_t *ctx) |
Set device as coordinator function. | |
void | bee_nonbeacon_device (bee_t *ctx) |
Set nonbeacon device function. | |
void | bee_set_ack (bee_t *ctx) |
Set ACK request function. | |
void | bee_set_not_ack (bee_t *ctx) |
Set not ACK request function. | |
void | bee_enable_encrypt (bee_t *ctx) |
Set enable encrypt function. | |
void | bee_disabl_encrypt (bee_t *ctx) |
Disable encrypt function. | |
void | bee_set_ifs_recomended (bee_t *ctx) |
Set interframe spacing function. | |
void | bee_set_ifs_default (bee_t *ctx) |
Set default interframe spacing function. | |
void | bee_set_reception_mode (bee_t *ctx, uint8_t r_mode) |
Set reception mode function. | |
void | bee_set_frame_format_filter (bee_t *ctx, uint8_t fff_mode) |
Set frame format filter function. | |
void | bee_flush_rx_fifo_pointer (bee_t *ctx) |
Set flush RX FIFO pointer function. | |
void | bee_set_short_address (bee_t *ctx, uint8_t *short_address) |
Set short address function. | |
void | bee_set_long_address (bee_t *ctx, uint8_t *long_address) |
Set long address function. | |
void | bee_set_pan_id (bee_t *ctx, uint8_t *pan_id) |
Set PAN ID function. | |
void | bee_enable_immediate_wake_up (bee_t *ctx) |
Enable Immediate Wake-up mode function. | |
void | bee_hw_wake_up (bee_t *ctx) |
Hardware Wake Up function. | |
void | bee_enable_pll (bee_t *ctx) |
Enable PLL function. | |
void | bee_disable_pll (bee_t *ctx) |
Disable PLL function. | |
void | bee_set_tx_power (bee_t *ctx, uint8_t tx_power) |
Set scale control for Tx power function. | |
void | bee_basic_init (bee_t *ctx) |
Basic initialization module function. | |
void | bee_nonbeacon_init (bee_t *ctx) |
Initialization nonbeacon module function. | |
uint8_t | bee_interrupt_activity (bee_t *ctx) |
Check interrupt activity function. | |
void | bee_start_transmit (bee_t *ctx) |
Start transmission function. | |
void | bee_read_rx_fifo (bee_t *ctx, uint8_t *rx_data) |
Read RX FIFO function. | |
void | bee_write_tx_normal_fifo (bee_t *ctx, uint16_t address_tx_normal_fifo, uint8_t *tx_data) |
Write TX normal FIFO function. | |
uint8_t | bee_interrupt (bee_t *ctx) |
Get interrupt state function. | |
void bee_basic_init | ( | bee_t * | ctx | ) |
Basic initialization module function.
ctx | Click object. |
@description The function set basic initialization module:
void bee_bb_reset | ( | bee_t * | ctx | ) |
Baseband reset function.
ctx | Click object. |
@description The function Baseband reset - reset baseband circuitry by sets to '1' [ bit 1 ] states of _BEE_SOFTRST register address of MRF24J40MA 2.4GHz transceiver module on BEE Click board.
void bee_cfg_setup | ( | bee_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void bee_disabl_encrypt | ( | bee_t * | ctx | ) |
Disable encrypt function.
ctx | Click object. |
@description The function set Encrypt TX Normal FIFO Security Disabled by cleared to '0' [ bit 1 ] states of _BEE_TXNCON register address of MRF24J40MA 2.4GHz transceiver module on BEE Click board.
void bee_disable_pll | ( | bee_t * | ctx | ) |
Disable PLL function.
ctx | Click object. |
@description The function enable PLL by cleared to '0' [ bit 7 ] states of _BEE_RFCON2 register address of MRF24J40MA 2.4GHz transceiver module on BEE Click board.
void bee_enable_encrypt | ( | bee_t * | ctx | ) |
Set enable encrypt function.
ctx | Click object. |
@description The function set Encrypt TX Normal FIFO Security Enabled by set to '1' [ bit 1 ] states of _BEE_TXNCON register address of MRF24J40MA 2.4GHz transceiver module on BEE Click board.
void bee_enable_immediate_wake_up | ( | bee_t * | ctx | ) |
Enable Immediate Wake-up mode function.
ctx | Click object. |
@description Function enable immediate wake-up mode by wake signal polarity is active-high, enable wake I/O pin and by sets to '1' [ bit 7 ] states of _BEE_WAKECON register address of MRF24J40MA 2.4GHz transceiver module on BEE Click board.
void bee_enable_interrupt | ( | bee_t * | ctx | ) |
Enable interrupt function.
ctx | Click object. |
@description The function enable all interrupts:
void bee_enable_pll | ( | bee_t * | ctx | ) |
Enable PLL function.
ctx | Click object. |
@description The function enable PLL by sets to '1' [ bit 7 ] states of _BEE_RFCON2 register address of MRF24J40MA 2.4GHz transceiver module on BEE Click board.
void bee_flush_rx_fifo_pointer | ( | bee_t * | ctx | ) |
Set flush RX FIFO pointer function.
ctx | Click object. |
@description The function set flush RX FIFO pointer by resets the RXFIFO address pointer to zero and RXFIFO data is not modified of the _BEE_RXFLUSH register address of MRF24J40MA 2.4GHz transceiver module on BEE Click board.
void bee_generic_transfer | ( | bee_t * | ctx, |
uint8_t * | wr_buf, | ||
uint16_t | wr_len, | ||
uint8_t * | rd_buf, | ||
uint16_t | rd_len ) |
Generic transfer function.
ctx | Click object. |
wr_buf | Write data buffer |
wr_len | Number of byte in write data buffer |
rd_buf | Read data buffer |
rd_len | Number of byte in read data buffer |
@description Generic SPI transfer, for sending and receiving packages
void bee_hw_reset | ( | bee_t * | ctx | ) |
Hardware reset function.
ctx | Click object. |
@description The function Hardware reset - resets the MRF24J40MA 2.4GHz transceiver module by cleared to '0' RST state pin, wait 5 ms and set to '1' RST state pin on BEE Click board.
void bee_hw_wake_up | ( | bee_t * | ctx | ) |
Hardware Wake Up function.
ctx | Click object. |
@description The function hardware Wake Up by set to '1' RST pin state of MRF24J40MA 2.4GHz transceiver module on BEE Click board.
Initialization function.
ctx | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
uint8_t bee_interrupt | ( | bee_t * | ctx | ) |
Get interrupt state function.
ctx | Click object. |
@description The function gets interrupt state by return status of INT pin of BEE Click board.
uint8_t bee_interrupt_activity | ( | bee_t * | ctx | ) |
Check interrupt activity function.
ctx | Click object. |
@description The function check interrupt status of MRF24J40MA 2.4GHz transceiver module on BEE Click board.
void bee_mac_reset | ( | bee_t * | ctx | ) |
MAC reset function.
ctx | Click object. |
@description The function MAC reset - reset MAC circuitry by sets to '1' [ bit 0 ] states of _BEE_SOFTRST register address of MRF24J40MA 2.4GHz transceiver module on BEE Click board.
void bee_nonbeacon_coordinator_device | ( | bee_t * | ctx | ) |
Set device as coordinator function.
ctx | Click object. |
@description The function set device as coordinator and disable Slotted CSMA-CA mode by sets to '1' [ bit 2 ] states of _BEE_RXMCR register address and cleared to '0' [ bit 5 ] states of _BEE_TXMCR register address of MRF24J40MA 2.4GHz transceiver module on BEE Click board.
void bee_nonbeacon_device | ( | bee_t * | ctx | ) |
Set nonbeacon device function.
ctx | Click object. |
@description The function set device is not set as PAN coordinator and device is not set as coordinator by cleared to '0' [ bit 3 : bit 2 ] states of _BEE_RXMCR register address and cleared to '0' [ bit 5 ] states of _BEE_TXMCR register address of MRF24J40MA 2.4GHz transceiver module on BEE Click board.
void bee_nonbeacon_init | ( | bee_t * | ctx | ) |
Initialization nonbeacon module function.
ctx | Click object. |
@description The function set initialization nonbeacon mode by:
void bee_nonbeacon_pan_coordinator_device | ( | bee_t * | ctx | ) |
Set device as PAN coordinator function.
ctx | Click object. |
@description The function set device as PAN coordinator and disable Slotted CSMA-CA mode by sets to '1' [ bit 3 ] states of _BEE_RXMCR register address and cleared to '0' [ bit 5 ] states of _BEE_TXMCR register address of MRF24J40MA 2.4GHz transceiver module on BEE Click board.
void bee_power_reset | ( | bee_t * | ctx | ) |
Power reset function.
ctx | Click object. |
@description The function Power reset - reset power management circuitry by sets to '1' [ bit 2 ] states of _BEE_SOFTRST register address of MRF24J40MA 2.4GHz transceiver module on BEE Click board.
uint8_t bee_read_byte_long | ( | bee_t * | ctx, |
uint16_t | reg_address ) |
Read the byte of data from the long register address function.
reg_address | 16-bit register address |
@description The function write the 8-bit of data to the targeted long 16-bit register address of MRF24J40MA 2.4GHz transceiver module on BEE Click board.
uint8_t bee_read_byte_short | ( | bee_t * | ctx, |
uint8_t | reg_address ) |
Read the byte of data from the short register address function.
ctx | Click object. |
reg_address | 8-bit register address |
@description The function write the 8-bit of data to the targeted short 8-bit register address of MRF24J40MA 2.4GHz transceiver module on BEE Click board.
void bee_read_rx_fifo | ( | bee_t * | ctx, |
uint8_t * | rx_data ) |
Read RX FIFO function.
ctx | Click object. |
rx_data | pointer to the memory location where rxData be stored |
@description The function set short address by write shortAddress value to the _BEE_SADRL and _BEE_SADRH register address of MRF24J40MA 2.4GHz transceiver module on BEE Click board.
void bee_rf_reset | ( | bee_t * | ctx | ) |
RF state machine reset function.
ctx | Click object. |
@description The function RF state machine reset activate normal operation of RF state machine by clear to '0' [ bit 2 ] states of _BEE_RFCTL register address of MRF24J40MA 2.4GHz transceiver module on BEE Click board.
void bee_set_ack | ( | bee_t * | ctx | ) |
Set ACK request function.
ctx | Click object. |
@description The function set TX Normal FIFO Acknowledgement Request by sets to '1' [ bit 2 ] states of _BEE_TXNCON register address of MRF24J40MA 2.4GHz transceiver module on BEE Click board.
void bee_set_cca_mode | ( | bee_t * | ctx, |
uint8_t | cca_mode ) |
Set CCA mode function.
ctx | Click object. |
cca_mode |
|
@description The function set CCA mode 1, 2 or 3 by write ccaMode value to the _BEE_RFCON0 register address of MRF24J40MA 2.4GHz transceiver module on BEE Click board.
void bee_set_channel | ( | bee_t * | ctx, |
uint8_t | n_channel ) |
Set channel function.
ctx | Click object. |
n_nhannel |
|
@description The function set channel by write number of channel value to the _BEE_RFCON0 register address of MRF24J40MA 2.4GHz transceiver module on BEE Click board.
void bee_set_frame_format_filter | ( | bee_t * | ctx, |
uint8_t | fff_mode ) |
Set frame format filter function.
ctx | Click object. |
fff_mode |
|
@description The function set reception mode by write fffMode value to the _BEE_RXFLUSH register address of MRF24J40MA 2.4GHz transceiver module on BEE Click board.
void bee_set_ifs_default | ( | bee_t * | ctx | ) |
Set default interframe spacing function.
ctx | Click object. |
@description The function set default interframe spacing by sets:
void bee_set_ifs_recomended | ( | bee_t * | ctx | ) |
Set interframe spacing function.
ctx | Click object. |
@description The function set interframe spacing recomended by sets:
void bee_set_long_address | ( | bee_t * | ctx, |
uint8_t * | long_address ) |
Set long address function.
ctx | Click object. |
long_address | pointer of the long address value |
@description The function set long address by write longAddress value start on _BEE_EADR0 register address of MRF24J40MA 2.4GHz transceiver module on BEE Click board.
void bee_set_not_ack | ( | bee_t * | ctx | ) |
Set not ACK request function.
ctx | Click object. |
@description The function set TX Normal FIFO No Acknowledgement Request by cleared to '0' [ bit 2 ] states of _BEE_TXNCON register address of MRF24J40MA 2.4GHz transceiver module on BEE Click board.
void bee_set_pan_id | ( | bee_t * | ctx, |
uint8_t * | pan_id ) |
Set PAN ID function.
ctx | Click object. |
pan_id | pointer of the PAN ID value |
@description The function set PAN ID by write panId value to the _BEE_PANIDL and _BEE_PANIDH register address of MRF24J40MA 2.4GHz transceiver module on BEE Click board.
void bee_set_reception_mode | ( | bee_t * | ctx, |
uint8_t | r_mode ) |
Set reception mode function.
ctx | Click object. |
r_mode |
|
@description The function set reception mode by write rMode value to the _BEE_RXMCR register address of MRF24J40MA 2.4GHz transceiver module on BEE Click board.
void bee_set_rssi_mode | ( | bee_t * | ctx, |
uint8_t | rssi_mode ) |
Set RSSI mode function.
ctx | Click object. |
rssi_mode |
|
@description The function set RSSI mode 1 or 2 by write rssiMode value to the _BEE_RFCON0 register address of MRF24J40MA 2.4GHz transceiver module on BEE Click board.
void bee_set_short_address | ( | bee_t * | ctx, |
uint8_t * | short_address ) |
Set short address function.
short_address | pointer of the short address value |
@description The function set short address by write shortAddress value to the _BEE_SADRL and _BEE_SADRH register address of MRF24J40MA 2.4GHz transceiver module on BEE Click board.
void bee_set_tx_power | ( | bee_t * | ctx, |
uint8_t | tx_power ) |
Set scale control for Tx power function.
ctx | Click object. |
tx_power | TX power value from 0 to 31 |
@description The function set scale control for Tx power by write txPower value to the _BEE_RFCON3 register address of MRF24J40MA 2.4GHz transceiver module on BEE Click board.
void bee_soft_reset | ( | bee_t * | ctx | ) |
Soft reset function.
ctx | Click object. |
@description The function soft reset - reset power, baseband and MAC circuitry by sets to '1' [ bit 3 : bit 0 ] states of _BEE_SOFTRST register address of MRF24J40MA 2.4GHz transceiver module on BEE Click board.
void bee_start_transmit | ( | bee_t * | ctx | ) |
Start transmission function.
ctx | Click object. |
@description The function start transmission by sets transmit the frame in the TX Normal FIFO to the _BEE_TXNCON register address of MRF24J40MA 2.4GHz transceiver module on BEE Click board.
void bee_write_byte_long | ( | bee_t * | ctx, |
uint16_t | reg_address, | ||
uint8_t | write_data ) |
Write the byte of data to the long register address function.
reg_address | 16-bit register address |
write_data | Byte of data to write |
@description The function writes the byte of data to the targeted long 16-bit register address of MRF24J40MA 2.4GHz transceiver module on BEE Click board.
void bee_write_byte_short | ( | bee_t * | ctx, |
uint8_t | reg_address, | ||
uint8_t | write_data ) |
Write the byte of data to the short register address function.
ctx | Click object. |
reg_address | 8-bit register address |
write_data | Byte of data to write |
@description The function writes the byte of data to the targeted short 8-bit register address of MRF24J40MA 2.4GHz transceiver module on BEE Click board.
void bee_write_tx_normal_fifo | ( | bee_t * | ctx, |
uint16_t | address_tx_normal_fifo, | ||
uint8_t * | tx_data ) |
Write TX normal FIFO function.
ctx | Click object. |
address_tx_normal_fifo | 16-bit normal FIFO register address from 0x000 to 0x07F |
tx_data | pointer to the memory location where txData be stored |
@description The function write TX normal FIFO by write txData value to the starts from addressTXnormalFIFO register address of MRF24J40MA 2.4GHz transceiver module on BEE Click board.