89 typedef unsigned radio_param_t;
321 RADIO_CONST_TSCH_TIMING,
374 RADIO_CONST_MAX_PAYLOAD_LEN,
443 #define RADIO_RX_MODE_ADDRESS_FILTER (1 << 0) 448 #define RADIO_RX_MODE_AUTOACK (1 << 1) 453 #define RADIO_RX_MODE_POLL_MODE (1 << 2) 466 #define RADIO_TX_MODE_SEND_ON_CCA (1 << 0) 572 int (*
prepare)(
const void *payload,
unsigned short payload_len);
623 int (*
send)(
const void *payload,
unsigned short payload_len);
647 int (*
read)(
void *buf,
unsigned short buf_len);
radio_result_t(* get_object)(radio_param_t param, void *dest, size_t size)
Get a radio parameter object.
The delay in usec between turning on the radio and it being actually listening (able to hear a preamb...
int(* prepare)(const void *payload, unsigned short payload_len)
Prepare the radio with a packet to be sent.
The parameter is not supported.
TX failed due to a collision.
Radio powered on and emitting unmodulated carriers.
radio_param_e
Radio parameters and constants.
The delay in usec between a call to the radio API's transmit function and the end of SFD transmission...
The maximum transmission power in dBm.
Received signal strength indicator in dBm.
int(* receiving_packet)(void)
Check if the radio driver is currently receiving a packet.
The short address (16 bits) for the radio, which is used by the h/w filter.
radio_result_t(* set_value)(radio_param_t param, radio_value_t value)
Set a radio parameter value.
int(* pending_packet)(void)
Check if a packet has been received and is available in the radio driver's buffers.
The structure of a Contiki-NG radio device driver.
Channel used for radio communication.
For enabling and disabling the SHR search.
The value argument was incorrect.
The parameter was set/read successfully.
int(* channel_clear)(void)
Perform a Clear-Channel Assessment (CCA) to find out if there is a packet in the air or not...
int radio_value_t
Each radio has a set of parameters that designate the current configuration and state of the radio...
An error occurred when getting/setting the parameter, but the arguments were otherwise correct...
Radio transmission mode determines if the radio has send on CCA (RADIO_TX_MODE_SEND_ON_CCA) enabled o...
The RSSI value of the last received packet.
The physical layer header (PHR) + MAC layer footer (MFR) overhead in bytes.
Clear channel assessment threshold in dBm.
int(* send)(const void *payload, unsigned short payload_len)
Prepare & transmit a packet.
int(* transmit)(unsigned short transmit_len)
Send the packet that has previously been prepared.
int(* off)(void)
Turn the radio off.
The personal area network identifier (PAN ID), which is used by the h/w frame filtering functionality...
The lowest radio channel number.
Radio receiver mode determines if the radio has address filter (RADIO_RX_MODE_ADDRESS_FILTER) and aut...
The highest radio channel number.
radio_result_e
Radio return values when setting or getting radio parameters.
A unicast frame was sent OK but an ACK was not received.
The air time of one byte in usec, e.g.
Radio powered on, but not emitting unmodulated carriers.
When getting the value of this parameter, the radio driver should indicate whether the radio is on or...
enum radio_result_e radio_result_t
Radio return values when setting or getting radio parameters.
radio_shr_search_e
Possible values of the get_value() / set_value() value argument when the param argument is RADIO_PARA...
int(* init)(void)
Initialise the radio hardware.
The delay in usec between the end of SFD reception for an incoming frame and the radio API starting t...
Enable SHR search or SHR search is enabled.
Link quality indicator of the last received packet.
Long (64 bits) address for the radio, which is used by the address filter.
The minimum transmission power in dBm.
Radio powered on and able to receive frames.
int(* read)(void *buf, unsigned short buf_len)
Read a received packet into a buffer.
Transmission power in dBm.
radio_result_t(* get_value)(radio_param_t param, radio_value_t *value)
Get a radio parameter value.
radio_power_mode_e
Radio power modes.
Last packet timestamp, of type rtimer_clock_t.
An error occurred during transmission.
radio_result_t(* set_object)(radio_param_t param, const void *src, size_t size)
Set a radio parameter object.
Radio powered off and in the lowest possible power consumption state.
Disable SHR search or SHR search is enabled.
TX was successful and where an ACK was requested one was received.
int(* on)(void)
Turn the radio on.
radio_tx_e
Radio return values for the transmit() function.