btez 2.0.0.0
Public function

Functions

void btez_cfg_setup (btez_cfg_t *cfg)
 Config Object Initialization function.
 
BTEZ_RETVAL btez_init (btez_t *ctx, btez_cfg_t *cfg)
 Initialization function.
 
void btez_module_reset (btez_t *ctx)
 Reset module.
 
void btez_generic_write (btez_t *ctx, char *data_buf, uint16_t len)
 Generic write function.
 
int32_t btez_generic_read (btez_t *ctx, char *data_buf, uint16_t max_len)
 Generic read function.
 
void btez_send_command (btez_t *ctx, char *command)
 Send command function.
 

Detailed Description

Function Documentation

◆ btez_cfg_setup()

void btez_cfg_setup ( btez_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.

◆ btez_generic_read()

int32_t btez_generic_read ( btez_t * ctx,
char * data_buf,
uint16_t max_len )

Generic read function.

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

◆ btez_generic_write()

void btez_generic_write ( btez_t * ctx,
char * data_buf,
uint16_t len )

Generic write function.

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

◆ btez_init()

BTEZ_RETVAL btez_init ( btez_t * ctx,
btez_cfg_t * cfg )

Initialization function.

Parameters
btezClick object.
cfgClick configuration structure.

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

◆ btez_module_reset()

void btez_module_reset ( btez_t * ctx)

Reset module.

Parameters
btezClick object.

◆ btez_send_command()

void btez_send_command ( btez_t * ctx,
char * command )

Send command function.

Parameters
ctxClick object.
cmd_textData to be send.