TEST
Dependencies: max32630fthr Adafruit_FeatherOLED USBDevice
Drivers/BLE_ICARUS/BLE_ICARUS.h@1:f60eafbf009a, 2019-04-10 (annotated)
- Committer:
- gmehmet
- Date:
- Wed Apr 10 14:56:25 2019 +0300
- Revision:
- 1:f60eafbf009a
- Child:
- 3:2fe2ff1ca0dc
upload from local
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
gmehmet | 1:f60eafbf009a | 1 | #ifndef _BLE_ICARUS_H_ |
gmehmet | 1:f60eafbf009a | 2 | #define _BLE_ICARUS_H_ |
gmehmet | 1:f60eafbf009a | 3 | |
gmehmet | 1:f60eafbf009a | 4 | |
gmehmet | 1:f60eafbf009a | 5 | #include "mbed.h" |
gmehmet | 1:f60eafbf009a | 6 | #include "ble/BLE.h" |
gmehmet | 1:f60eafbf009a | 7 | #include "DSInterface.h" |
gmehmet | 1:f60eafbf009a | 8 | |
gmehmet | 1:f60eafbf009a | 9 | |
gmehmet | 1:f60eafbf009a | 10 | |
gmehmet | 1:f60eafbf009a | 11 | |
gmehmet | 1:f60eafbf009a | 12 | |
gmehmet | 1:f60eafbf009a | 13 | |
gmehmet | 1:f60eafbf009a | 14 | |
gmehmet | 1:f60eafbf009a | 15 | enum BLE_State { |
gmehmet | 1:f60eafbf009a | 16 | BLE_DOWN, |
gmehmet | 1:f60eafbf009a | 17 | BLE_STARTING, |
gmehmet | 1:f60eafbf009a | 18 | BLE_ADVERTISING, |
gmehmet | 1:f60eafbf009a | 19 | BLE_CONNECTED, |
gmehmet | 1:f60eafbf009a | 20 | BLE_DISCONNECTED, |
gmehmet | 1:f60eafbf009a | 21 | }; |
gmehmet | 1:f60eafbf009a | 22 | |
gmehmet | 1:f60eafbf009a | 23 | extern volatile BLE_State bleState; |
gmehmet | 1:f60eafbf009a | 24 | |
gmehmet | 1:f60eafbf009a | 25 | /** |
gmehmet | 1:f60eafbf009a | 26 | * Callback triggered when the ble initialization process has finished |
gmehmet | 1:f60eafbf009a | 27 | */ |
gmehmet | 1:f60eafbf009a | 28 | void bleInitComplete(BLE::InitializationCompleteCallbackContext *params); |
gmehmet | 1:f60eafbf009a | 29 | |
gmehmet | 1:f60eafbf009a | 30 | int BLE_Icarus_TransferData(uint8_t data_transfer[20]); |
gmehmet | 1:f60eafbf009a | 31 | |
gmehmet | 1:f60eafbf009a | 32 | int BLE_Icarus_AddtoQueue(uint8_t *data_transfer, int32_t buf_size, int32_t data_size); |
gmehmet | 1:f60eafbf009a | 33 | |
gmehmet | 1:f60eafbf009a | 34 | int BLE_Icarus_SetDSInterface(DSInterface *comm_obj); |
gmehmet | 1:f60eafbf009a | 35 | |
gmehmet | 1:f60eafbf009a | 36 | int BLE_Icarus_TransferDataFromQueue(); |
gmehmet | 1:f60eafbf009a | 37 | |
gmehmet | 1:f60eafbf009a | 38 | bool BLE_Icarus_Interface_Exists(); |
gmehmet | 1:f60eafbf009a | 39 | |
gmehmet | 1:f60eafbf009a | 40 | int BLE_ICARUS_Get_Mac_Address(char MacAdress[6]); |
gmehmet | 1:f60eafbf009a | 41 | |
gmehmet | 1:f60eafbf009a | 42 | |
gmehmet | 1:f60eafbf009a | 43 | |
gmehmet | 1:f60eafbf009a | 44 | |
gmehmet | 1:f60eafbf009a | 45 | |
gmehmet | 1:f60eafbf009a | 46 | |
gmehmet | 1:f60eafbf009a | 47 | |
gmehmet | 1:f60eafbf009a | 48 | |
gmehmet | 1:f60eafbf009a | 49 | |
gmehmet | 1:f60eafbf009a | 50 | |
gmehmet | 1:f60eafbf009a | 51 | |
gmehmet | 1:f60eafbf009a | 52 | |
gmehmet | 1:f60eafbf009a | 53 | |
gmehmet | 1:f60eafbf009a | 54 | |
gmehmet | 1:f60eafbf009a | 55 | |
gmehmet | 1:f60eafbf009a | 56 | |
gmehmet | 1:f60eafbf009a | 57 | |
gmehmet | 1:f60eafbf009a | 58 | |
gmehmet | 1:f60eafbf009a | 59 | |
gmehmet | 1:f60eafbf009a | 60 | |
gmehmet | 1:f60eafbf009a | 61 | |
gmehmet | 1:f60eafbf009a | 62 | |
gmehmet | 1:f60eafbf009a | 63 | |
gmehmet | 1:f60eafbf009a | 64 | |
gmehmet | 1:f60eafbf009a | 65 | |
gmehmet | 1:f60eafbf009a | 66 | #endif |