bletiny 2.0.0.0
|
BLE TINY Click Example. More...
Macros | |
#define | PROCESS_BUFFER_SIZE 200 |
Application receiver buffer size. | |
#define | EXAMPLE_CMD_LEN 6 |
Enumerations | |
enum | bletiny_example_type_t { BLETINY_APP_CTRL , BLETINY_I2C_EXAMPLE , BLETINY_SPI_EXAMPLE } |
Application example type. More... | |
enum | bletiny_example_state_t { BLETINY_CONFIGURE_MASTER , BLETINY_CONFIGURE_SLAVE , BLETINY_EXAMPLE } |
Application example state. More... | |
Functions | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
BLE TINY Click Example.
This example reads and processes data from BLE TINY clicks. Application waits for connection with Click board with phone. Then checks its Coadless FW version and checks connected device. Then waits for command to be stored in it's memory on 0 slot. After that depending on the command stored it executes that type of example.
The demo application is composed of two sections :
Initializes driver and resets device and seds Disconnect and Reset IO commands. Then it waits for the connection to device. When connected it sends commands to check Coadless FW, connected device, its BLE address and signal quality of connection. In the end it waits for command from its memory. After valid command is stored in memory on 0 slot it contines to Application Task.
Executes one of thre application task selected in Application Init:I2C, SPI, APP. I2C example uses EEPROM Click board to write and read data of its memory. SPI example uses EEPROM 2 Click board to write and read data of its memory. APP example just reads UART data and logs it to UART Terminal.
#define EXAMPLE_CMD_LEN 6 |
#define PROCESS_BUFFER_SIZE 200 |
Application receiver buffer size.
Specified size of application receiver buffer.
void application_init | ( | void | ) |
< Logger config object.
< Click config object.
Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG
void application_task | ( | void | ) |
int main | ( | void | ) |