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.
Diff: ICE-Application/src/add-ons/BLE/inc/ble_spi.h
- Revision:
- 0:61364762ee0e
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ICE-Application/src/add-ons/BLE/inc/ble_spi.h Tue Jan 24 19:05:33 2017 +0000 @@ -0,0 +1,41 @@ +/** + ****************************************************************************** + * @file ble_types.h + * @author Happiesstminds Firmware Team + * @version v1.0 + * @date 4-Oct-2016 + * @brief + * + ****************************************************************************** + * @attention + * + * + ****************************************************************************** + */ + +#ifndef _BLE_SPI_H +#define _BLE_TYPES_H + +#define BLE_SOF_CMD 0x01 +#define BLE_EOT_CMD 0x04 + +#define BLE_INIT_CMD 0xA1 +#define BLE_START_ADV_CMD 0xA2 +#define BLE_CONNECTION_EVNT_CMD 0xA3 +#define BLE_START_OF_FILE 0xA4 +#define BLE_SEND_DATA_CMD 0xA5 +#define BLE_END_OF_FILE 0xA6 +#define BLE_REC_DATA_CMD 0xA7 +#define BLE_DISCONNECTION_EVNT_CMD 0xA8 +#define BLE_ACK_CMD 0xAA + +#include "ble_main.h" + +uint8_t WriteSpiData(uint8_t * p_buffer, uint16_t length); +uint8_t InitSpiMaster(void); +uint8_t ReadSpiData(uint8_t *); +#endif + +/******************************************************************************/ +/* END OF FILE */ +/******************************************************************************/ \ No newline at end of file