ble7  2.0.0.0
Macros | Functions | Variables
main.c File Reference

Ble7 Click example. More...

#include "board.h"
#include "log.h"
#include "ble7.h"
#include "string.h"

Macros

#define PROCESS_COUNTER   10
 
#define PROCESS_RX_BUFFER_SIZE   500
 
#define DEMO_APP_RECEIVER
 

Functions

void get_rsp (uint8_t *rsp_dat)
 
void log_rsp ()
 
void ble7_device_config ()
 
void sending_mode ()
 
void application_init (void)
 
void application_task (void)
 
void main (void)
 

Variables

char clrb_buf [5] = "clrb"
 
char adv_buf [9] = "adv high"
 
char set_blvhd_buf [17] = "set bl v h d 120"
 
char con_count_buf [11] = "get bl c c"
 
char str_mode_buf [4] = "str"
 
char read_buf [256]
 
uint8_t rx_data
 
uint8_t response [256]
 
uint8_t rsp_idx
 
uint8_t rsp_check
 
uint8_t log_check
 

Detailed Description

Ble7 Click example.

Description

This example reads and processes data from BLE 7 clicks.

The demo application is composed of two sections :

Application Init

Initializes peripherals, pins, UART serial interface, uart interrupt, and executes the module reset.

Application Task

Allows user to recive data from another device ( using mobile bluetooth terminal )

Additional Function

note: https://docs.silabs.com/gecko-os/1/bgx/latest/commands

Author
MikroE Team

Macro Definition Documentation

◆ DEMO_APP_RECEIVER

#define DEMO_APP_RECEIVER

◆ PROCESS_COUNTER

#define PROCESS_COUNTER   10

◆ PROCESS_RX_BUFFER_SIZE

#define PROCESS_RX_BUFFER_SIZE   500

Function Documentation

◆ application_init()

void application_init ( void  )

◆ application_task()

void application_task ( void  )

◆ ble7_device_config()

void ble7_device_config ( )

◆ get_rsp()

void get_rsp ( uint8_t *  rsp_dat)

◆ log_rsp()

void log_rsp ( )

◆ main()

void main ( void  )

◆ sending_mode()

void sending_mode ( )

Variable Documentation

◆ adv_buf

char adv_buf[9] = "adv high"

◆ clrb_buf

char clrb_buf[5] = "clrb"

◆ con_count_buf

char con_count_buf[11] = "get bl c c"

◆ log_check

uint8_t log_check

◆ read_buf

char read_buf[256]

◆ response

uint8_t response[256]

◆ rsp_check

uint8_t rsp_check

◆ rsp_idx

uint8_t rsp_idx

◆ rx_data

uint8_t rx_data

◆ set_blvhd_buf

char set_blvhd_buf[17] = "set bl v h d 120"

◆ str_mode_buf

char str_mode_buf[4] = "str"