ble3 2.0.0.0
Public function

Functions

void ble3_cfg_setup (ble3_cfg_t *cfg)
 Config Object Initialization function.
 
BLE3_RETVAL ble3_init (ble3_t *ctx, ble3_cfg_t *cfg)
 Initialization function.
 
void ble3_generic_write (ble3_t *ctx, char *data_buf, uint16_t len)
 Generic write function.
 
int32_t ble3_generic_read (ble3_t *ctx, char *data_buf, uint16_t max_len)
 Generic read function.
 

Detailed Description

Function Documentation

◆ ble3_cfg_setup()

void ble3_cfg_setup ( ble3_cfg_t * cfg)

Config Object Initialization function.

Parameters
cfgClick configuration structure.

@description This function initializes click configuration structure to init state.

Note
All used pins will be set to unconnected state.

◆ ble3_generic_read()

int32_t ble3_generic_read ( ble3_t * ctx,
char * data_buf,
uint16_t max_len )

Generic read function.

Parameters
ble3Click object.
data_bufData buffer for read data.
max_lenThe maximum length of data that can be read.
Returns
Number of reads data.

◆ ble3_generic_write()

void ble3_generic_write ( ble3_t * ctx,
char * data_buf,
uint16_t len )

Generic write function.

Parameters
ble3Click object.
data_bufData buffer for sends.
lenNumber of bytes for sends.

◆ ble3_init()

BLE3_RETVAL ble3_init ( ble3_t * ctx,
ble3_cfg_t * cfg )

Initialization function.

Parameters
ctxClick object.
cfgClick configuration structure.

@description This function initializes all necessary pins and peripherals used for this click.