Bluenet  5.7.0
Bluenet, firmware for nRF52 smart home devices
Loading...
Searching...
No Matches
cs_ErrorCodes.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SUCCESS(code)   code == ERR_SUCCESS
 
#define FAILURE(code)   code != ERR_SUCCESS
 

Enumerations

enum  ErrorCodesGeneral {
  ERR_SUCCESS = 0x00 , ERR_WAIT_FOR_SUCCESS = 0x01 , ERR_SUCCESS_NO_CHANGE = 0x02 , ERR_BUFFER_UNASSIGNED = 0x10 ,
  ERR_BUFFER_LOCKED = 0x11 , ERR_BUFFER_TOO_SMALL = 0x12 , ERR_NOT_ALIGNED = 0x13 , ERR_WRONG_PAYLOAD_LENGTH = 0x20 ,
  ERR_WRONG_PARAMETER = 0x21 , ERR_INVALID_MESSAGE = 0x22 , ERR_UNKNOWN_OP_CODE = 0x23 , ERR_UNKNOWN_TYPE = 0x24 ,
  ERR_NOT_FOUND = 0x25 , ERR_NO_SPACE = 0x26 , ERR_BUSY = 0x27 , ERR_WRONG_STATE = 0x28 ,
  ERR_ALREADY_EXISTS = 0x29 , ERR_TIMEOUT = 0x2A , ERR_CANCELED = 0x2B , ERR_PROTOCOL_UNSUPPORTED = 0x2C ,
  ERR_MISMATCH = 0x2D , ERR_WRONG_OPERATION = 0x2E , ERR_NO_ACCESS = 0x30 , ERR_UNSAFE = 0x31 ,
  ERR_NOT_AVAILABLE = 0x40 , ERR_NOT_IMPLEMENTED = 0x41 , ERR_NOT_INITIALIZED = 0x43 , ERR_NOT_STARTED = 0x44 ,
  ERR_NOT_POWERED = 0x45 , ERR_WRONG_MODE = 0x46 , ERR_WRITE_DISABLED = 0x50 , ERR_WRITE_NOT_ALLOWED = 0x51 ,
  ERR_READ_FAILED = 0x52 , ERR_ADC_INVALID_CHANNEL = 0x60 , ERR_EVENT_UNHANDLED = 0x70 , ERR_GATT_ERROR = 0x80 ,
  ERR_UNSPECIFIED = 0xFFFF
}
 Author: Crownstone Team Copyright: Crownstone (https://crownstone.rocks) Date: Jun 17, 2016 License: LGPLv3+, Apache License 2.0, and/or MIT (triple-licensed) More...
 

Macro Definition Documentation

◆ FAILURE

#define FAILURE (   code)    code != ERR_SUCCESS

◆ SUCCESS

#define SUCCESS (   code)    code == ERR_SUCCESS

Enumeration Type Documentation

◆ ErrorCodesGeneral

Author: Crownstone Team Copyright: Crownstone (https://crownstone.rocks) Date: Jun 17, 2016 License: LGPLv3+, Apache License 2.0, and/or MIT (triple-licensed)

Enumerator
ERR_SUCCESS 
ERR_WAIT_FOR_SUCCESS 
ERR_SUCCESS_NO_CHANGE 
ERR_BUFFER_UNASSIGNED 
ERR_BUFFER_LOCKED 
ERR_BUFFER_TOO_SMALL 
ERR_NOT_ALIGNED 
ERR_WRONG_PAYLOAD_LENGTH 
ERR_WRONG_PARAMETER 
ERR_INVALID_MESSAGE 
ERR_UNKNOWN_OP_CODE 
ERR_UNKNOWN_TYPE 
ERR_NOT_FOUND 
ERR_NO_SPACE 
ERR_BUSY 
ERR_WRONG_STATE 
ERR_ALREADY_EXISTS 
ERR_TIMEOUT 
ERR_CANCELED 
ERR_PROTOCOL_UNSUPPORTED 
ERR_MISMATCH 
ERR_WRONG_OPERATION 
ERR_NO_ACCESS 
ERR_UNSAFE 
ERR_NOT_AVAILABLE 
ERR_NOT_IMPLEMENTED 
ERR_NOT_INITIALIZED 
ERR_NOT_STARTED 
ERR_NOT_POWERED 
ERR_WRONG_MODE 
ERR_WRITE_DISABLED 
ERR_WRITE_NOT_ALLOWED 
ERR_READ_FAILED 
ERR_ADC_INVALID_CHANNEL 
ERR_EVENT_UNHANDLED 
ERR_GATT_ERROR 
ERR_UNSPECIFIED