Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
|
API user callbacks structure. More...
#include <ca821x-api/include/ca821x_api.h>
API user callbacks structure.
Contains a set of function pointers that can (and should) be populated by the user for processing asynchronous messages received from the hardware. If the pointer for the specific command type is populated that will be called, otherwise the generic_dispatch function will be. If neither are populated the message is discarded.
Every callback should return:
ca_error(* ca821x_api_callbacks::generic_dispatch) (const struct MAC_Message *msg, struct ca821x_dev *pDeviceRef) |
HWME_WAKEUP_indication_callback ca821x_api_callbacks::HWME_WAKEUP_indication |
MCPS_DATA_confirm_callback ca821x_api_callbacks::MCPS_DATA_confirm |
MCPS_DATA_indication_callback ca821x_api_callbacks::MCPS_DATA_indication |
MLME_ASSOCIATE_confirm_callback ca821x_api_callbacks::MLME_ASSOCIATE_confirm |
MLME_ASSOCIATE_indication_callback ca821x_api_callbacks::MLME_ASSOCIATE_indication |
MLME_BEACON_NOTIFY_indication_callback ca821x_api_callbacks::MLME_BEACON_NOTIFY_indication |
MLME_COMM_STATUS_indication_callback ca821x_api_callbacks::MLME_COMM_STATUS_indication |
MLME_DISASSOCIATE_confirm_callback ca821x_api_callbacks::MLME_DISASSOCIATE_confirm |
MLME_DISASSOCIATE_indication_callback ca821x_api_callbacks::MLME_DISASSOCIATE_indication |
MLME_ORPHAN_indication_callback ca821x_api_callbacks::MLME_ORPHAN_indication |
MLME_SCAN_confirm_callback ca821x_api_callbacks::MLME_SCAN_confirm |
MLME_SYNC_LOSS_indication_callback ca821x_api_callbacks::MLME_SYNC_LOSS_indication |
TDME_EDDET_indication_callback ca821x_api_callbacks::TDME_EDDET_indication |
TDME_ERROR_indication_callback ca821x_api_callbacks::TDME_ERROR_indication |
TDME_RXPKT_indication_callback ca821x_api_callbacks::TDME_RXPKT_indication |