Attempting to moved micro enhanced shockburst into a class so that functionality can be used.

Dependencies:   mbed

Fork of nRF51822_esb by Joshua Noble

uesb_error_codes.h

Committer:
jblackann
Date:
2018-06-15
Revision:
1:5d49c7b9f405
Parent:
0:a01a54c0dc90

File content as of revision 1:5d49c7b9f405:

#ifndef __UESB_ERROR_CODES_H__
#define __UESB_ERROR_CODES_H__

#define     UESB_SUCCESS                    0x0000

// State related errors
#define     UESB_ERROR_NOT_INITIALIZED      0x0101
#define     UESB_ERROR_ALREADY_INITIALIZED  0x0102
#define     UESB_ERROR_NOT_IDLE             0x0103
#define     UESB_ERROR_NOT_IN_RX_MODE       0x0104

// Invalid parameter errors
#define     UESB_ERROR_INVALID_PARAMETERS   0x0200
#define     UESB_ERROR_DYN_ACK_NOT_ENABLED  0x0201

// FIFO related errors
#define     UESB_ERROR_TX_FIFO_FULL         0x0301
#define     UESB_ERROR_TX_FIFO_EMPTY        0x0302
#define     UESB_ERROR_RX_FIFO_EMPTY        0x0303

#endif