Contiki 3.x
|
Files | |
file | mrf24j40.c |
MRF24J40 Driver. | |
file | mrf24j40.h |
MRF24J40 Driver. | |
file | mrf24j40_arch.h |
MRF24J40 Specific Arch Conf. | |
Functions | |
void | mrf24j40_set_channel (uint16_t ch) |
Set the channel. More... | |
void | mrf24j40_set_panid (uint16_t id) |
Store MAC PAN ID. More... | |
void | mrf24j40_set_short_mac_addr (uint16_t addr) |
Store short MAC address. More... | |
void | mrf24j40_set_extended_mac_addr (uint64_t addr) |
Store extended MAC address. More... | |
void | mrf24j40_get_short_mac_addr (uint16_t *addr) |
Get short MAC address. More... | |
void | mrf24j40_get_extended_mac_addr (uint64_t *addr) |
Gets extended MAC address. More... | |
void | mrf24j40_set_tx_power (uint8_t pwr) |
Set TX power. More... | |
uint8_t | mrf24j40_get_status (void) |
Get radio status. More... | |
uint8_t | mrf24j40_get_rssi (void) |
Get the RSSI. More... | |
uint8_t | mrf24j40_get_last_rssi (void) |
Get the last read RSSI. More... | |
uint8_t | mrf24j40_get_last_lqi (void) |
Get the last read LQI. More... | |
int32_t | mrf24j40_set_txfifo (const uint8_t *buf, uint8_t buf_len) |
Store message. More... | |
int32_t | mrf24j40_get_rxfifo (uint8_t *buf, uint8_t buf_len) |
Get message. More... | |
int | mrf24j40_init (void) |
Init transceiver. More... | |
void mrf24j40_get_extended_mac_addr | ( | uint64_t * | addr | ) |
Gets extended MAC address.
This routine gets the extended MAC address stored in the MRF24J40.
Definition at line 270 of file mrf24j40.c.
uint8_t mrf24j40_get_last_lqi | ( | void | ) |
uint8_t mrf24j40_get_last_rssi | ( | void | ) |
Get the last read RSSI.
This routine returns the last rssi value mesured in dbm Note: to convert the returned value to dBm, use the table 3-8 available in the MRF24J40 datasheet.
Definition at line 356 of file mrf24j40.c.
uint8_t mrf24j40_get_rssi | ( | void | ) |
Get the RSSI.
This routine returns the rssi value mesured in dbm Note: to convert the returned value to dBm, use the table 3-8 available in the MRF24J40 datasheet.
Definition at line 313 of file mrf24j40.c.
int32_t mrf24j40_get_rxfifo | ( | uint8_t * | buf, |
uint8_t | buf_len | ||
) |
Get message.
This routine is used to retrieve a message stored in the RX_FIFO
Definition at line 404 of file mrf24j40.c.
void mrf24j40_get_short_mac_addr | ( | uint16_t * | addr | ) |
Get short MAC address.
This routine gets the short MAC address stored in the MRF24J40.
Definition at line 258 of file mrf24j40.c.
uint8_t mrf24j40_get_status | ( | void | ) |
Get radio status.
This routine returns the MRF24J40 status.
Definition at line 299 of file mrf24j40.c.
int mrf24j40_init | ( | void | ) |
Init transceiver.
This routine initializes the radio transceiver
Definition at line 524 of file mrf24j40.c.
References clock_delay_usec(), mrf24j40_set_channel(), mrf24j40_set_tx_power(), NULL, and process_start().
void mrf24j40_set_channel | ( | uint16_t | ch | ) |
Set the channel.
This routine sets the rx/tx channel
Definition at line 203 of file mrf24j40.c.
Referenced by mrf24j40_init().
void mrf24j40_set_extended_mac_addr | ( | uint64_t | addr | ) |
Store extended MAC address.
This routine sets the extended MAC address in the MRF24J40.
Definition at line 240 of file mrf24j40.c.
void mrf24j40_set_panid | ( | uint16_t | id | ) |
Store MAC PAN ID.
This routine sets the MAC PAN ID in the MRF24J40.
Definition at line 216 of file mrf24j40.c.
void mrf24j40_set_short_mac_addr | ( | uint16_t | addr | ) |
Store short MAC address.
This routine sets the short MAC address in the MRF24J40.
Definition at line 228 of file mrf24j40.c.
void mrf24j40_set_tx_power | ( | uint8_t | pwr | ) |
Set TX power.
This routine sets the transmission power of the MRF24J40.
Definition at line 288 of file mrf24j40.c.
Referenced by mrf24j40_init().
int32_t mrf24j40_set_txfifo | ( | const uint8_t * | buf, |
uint8_t | buf_len | ||
) |
Store message.
This routine stores a buffer of buf_len bytes in the TX_FIFO buffer of the MRF24J40.
Definition at line 379 of file mrf24j40.c.