Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
ICE-Application/src/add-ons/BLE/inc/ble_main.h@0:61364762ee0e, 2017-01-24 (annotated)
- Committer:
- jmarkel44
- Date:
- Tue Jan 24 19:05:33 2017 +0000
- Revision:
- 0:61364762ee0e
Port from IAR to Nucleo-F412 board
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jmarkel44 | 0:61364762ee0e | 1 | /** |
jmarkel44 | 0:61364762ee0e | 2 | ****************************************************************************** |
jmarkel44 | 0:61364762ee0e | 3 | * @file ble_types.h |
jmarkel44 | 0:61364762ee0e | 4 | * @author Happiesstminds Firmware Team |
jmarkel44 | 0:61364762ee0e | 5 | * @version v1.0 |
jmarkel44 | 0:61364762ee0e | 6 | * @date 4-Oct-2016 |
jmarkel44 | 0:61364762ee0e | 7 | * @brief |
jmarkel44 | 0:61364762ee0e | 8 | * |
jmarkel44 | 0:61364762ee0e | 9 | ****************************************************************************** |
jmarkel44 | 0:61364762ee0e | 10 | * @attention |
jmarkel44 | 0:61364762ee0e | 11 | * |
jmarkel44 | 0:61364762ee0e | 12 | * |
jmarkel44 | 0:61364762ee0e | 13 | ****************************************************************************** |
jmarkel44 | 0:61364762ee0e | 14 | */ |
jmarkel44 | 0:61364762ee0e | 15 | |
jmarkel44 | 0:61364762ee0e | 16 | #ifndef _BLE_MAIN_H |
jmarkel44 | 0:61364762ee0e | 17 | #define _BLE_MAIN_H |
jmarkel44 | 0:61364762ee0e | 18 | |
jmarkel44 | 0:61364762ee0e | 19 | uint8_t PollBLEEvents(void); |
jmarkel44 | 0:61364762ee0e | 20 | |
jmarkel44 | 0:61364762ee0e | 21 | typedef void (*ble_data_ready_callback_t) (uint8_t *rx_data, uint8_t data_length); |
jmarkel44 | 0:61364762ee0e | 22 | void BleDataRxCbRegister(ble_data_ready_callback_t data_rx_callback); |
jmarkel44 | 0:61364762ee0e | 23 | class BLE_FILE |
jmarkel44 | 0:61364762ee0e | 24 | { |
jmarkel44 | 0:61364762ee0e | 25 | public: |
jmarkel44 | 0:61364762ee0e | 26 | // Member functions declaration |
jmarkel44 | 0:61364762ee0e | 27 | uint8_t ConfigureBLEDevice(const char * device_name); |
jmarkel44 | 0:61364762ee0e | 28 | void SendFile(uint8_t* json_file,uint8_t len); |
jmarkel44 | 0:61364762ee0e | 29 | bool GetBleConnectionState(void); |
jmarkel44 | 0:61364762ee0e | 30 | }; |
jmarkel44 | 0:61364762ee0e | 31 | |
jmarkel44 | 0:61364762ee0e | 32 | |
jmarkel44 | 0:61364762ee0e | 33 | #define COMMAND_LENGTH 4 |
jmarkel44 | 0:61364762ee0e | 34 | #define DATA_LENGTH 0 |
jmarkel44 | 0:61364762ee0e | 35 | #define FAILURE 0 |
jmarkel44 | 0:61364762ee0e | 36 | #define MAX_PAYLOAD_BYTES 20 |
jmarkel44 | 0:61364762ee0e | 37 | |
jmarkel44 | 0:61364762ee0e | 38 | #endif |
jmarkel44 | 0:61364762ee0e | 39 | /******************************************************************************/ |
jmarkel44 | 0:61364762ee0e | 40 | /* END OF FILE */ |
jmarkel44 | 0:61364762ee0e | 41 | /******************************************************************************/ |