SIM_INTERFACE(ieee_802_15_4_receiver) {
void (*receive)(conf_object_t *NOTNULL obj,
const frags_t *frame,
uint32 rssi,
uint16 channel_page,
uint16 channel_number,
ieee_802_15_4_frame_crc_status_t crc_status);
void (*frame_lost)(conf_object_t *NOTNULL obj,
uint32 rssi,
uint16 channel_page,
uint16 channel_number);
};
#define IEEE_802_15_4_RECEIVER_INTERFACE "ieee_802_15_4_receiver"
The ieee_802_15_4_receiver interface is implemented by the
IEEE 802.15.4 transceivers that provide an interface for traffic.
Endpoints call receive to deliver a frame to transceiver.
Transceiver should check if the received frame from endpoint is in the
channel that it is using. The channel being used is defined by channel_page
and channel_number.
Endpoints call frame_lost to notify transceivers on that a frame
was lost because of low RSSI value.