PowerBlocks SDK
 
Loading...
Searching...
No Matches
blerror.h
Go to the documentation of this file.
1
10
11#pragma once
12
13// General Errors
14#define BLERROR_RUNTIME -1 // A weird value appeared somewhere
15#define BLERROR_IOS_EXCEPTION -2 // IOS returns an error code
16#define BLERROR_FREERTOS -3 // FreeRTOS gave an error. Likely out of memory.
17#define BLERROR_ARGUMENT -4 // Bad argument is passed
18#define BLERROR_HCI_REQUEST_ERR -5 // HCI Controller returned error
19#define BLERROR_HCI_CONNECT_FAILED -6 // Failed to connect to a device.
20#define BLERROR_OUT_OF_MEMORY -7 // System ran out of memory.
21#define BLERROR_TIMEOUT -8
22
23// Specific to opening a channel on L2CAP.
24#define BLERROR_CONNECTION_REFUSED_BAD_PSM -9
25#define BLERROR_CONNECTION_REFUSED_SECURITY -10
26#define BLERROR_CONNECTION_REFUSED_NO_RESOURCED -11
27#define BLERROR_CONNECTION_REFUSED_UNKNOWN -12
28#define BLERROR_CONNECTION_ALREADY_OPEN -13
29
30// BLTools Specific
31#define BLERROR_DRIVER_INITIALIZE_FAIL -13
32#define BLERROR_NO_DRIVER_FOUND -14