PART I
I'd like to know the best way of handling the following error conditions that could arise in a) a receive callback and b) changing the state of the CC1310 (going in and out of receive mode). Below is an enumerated list of possible returned statuses from a receive callback. I noticed that if encountered a "EasyLink_Status_Rx_Error" and did not handle it, the link would hang and the devices (receiver & transmitter) would need to be reset. I improved the performance by adding an Easylink_abort(), then and Easylink_receiveAsync() when that condition occurred. Although it improved the performance I still get hang ups.
So again, what is the best way of handling the following error conditions that could arise:
EasyLink_Status_Config_Error
EasyLink_Status_Param_Error
EasyLink_Status_Mem_Error
EasyLink_Status_Cmd_Error
EasyLink_Status_Tx_Error
EasyLink_Status_Rx_Error
EasyLink_Status_Rx_Timeout
EasyLink_Status_Rx_Buffer_Error
EasyLink_Status_Busy_Error
EasyLink_Status_Aborted
PART II
ALSO WHAT IS THE BEST TECHNIQUE IN THE EVENT THAT THESE CHANGE OF STATE CONDITIONS FAIL?
if(EasyLink_abort() != EasyLink_Status_Success)
{
}
if(EasyLink_receiveAsync(rxDoneCallback, 0) != EasyLink_Status_Success)
{
}