ble7 2.0.0.0
Public function

Functions

void ble7_cfg_setup (ble7_cfg_t *cfg)
 Config Object Initialization function.
 
BLE7_RETVAL ble7_init (ble7_t *ctx, ble7_cfg_t *cfg)
 Initialization function.
 
void ble7_reset (ble7_t *ctx)
 Reset function.
 
void ble7_generic_write (ble7_t *ctx, char *data_buf, uint16_t len)
 Generic write function.
 
int32_t ble7_generic_read (ble7_t *ctx, char *data_buf, uint16_t max_len)
 Generic read function.
 
void ble7_send_command (ble7_t *ctx, char *command)
 Transmit function.
 
uint8_t ble7_get_gp0 (ble7_t *ctx)
 GP0 Pin Getting function.
 
uint8_t ble7_get_rts (ble7_t *ctx)
 RTS Pin Getting function.
 
void ble7_set_gp1 (ble7_t *ctx, uint8_t state)
 GP1 Pin Setting function.
 
void ble7_set_cts (ble7_t *ctx, uint8_t state)
 CTS Pin Setting function.
 

Detailed Description

Function Documentation

◆ ble7_cfg_setup()

void ble7_cfg_setup ( ble7_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.

◆ ble7_generic_read()

int32_t ble7_generic_read ( ble7_t * ctx,
char * data_buf,
uint16_t max_len )

Generic read function.

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

@description This function read maximum length of data.

◆ ble7_generic_write()

void ble7_generic_write ( ble7_t * ctx,
char * data_buf,
uint16_t len )

Generic write function.

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

@description This function write specific number of bytes

◆ ble7_get_gp0()

uint8_t ble7_get_gp0 ( ble7_t * ctx)

GP0 Pin Getting function.

Parameters
ctxClick object.
Returns
0 or 1

@description This function checks state of the GP0 pin.

◆ ble7_get_rts()

uint8_t ble7_get_rts ( ble7_t * ctx)

RTS Pin Getting function.

Parameters
ctxClick object.
Returns
0 or 1

@description This function checks state of the RTS pin.

◆ ble7_init()

BLE7_RETVAL ble7_init ( ble7_t * ctx,
ble7_cfg_t * cfg )

Initialization function.

Parameters
ctxClick object.
cfgClick configuration structure.

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

◆ ble7_reset()

void ble7_reset ( ble7_t * ctx)

Reset function.

@description This function allows user to reset BGX module.

◆ ble7_send_command()

void ble7_send_command ( ble7_t * ctx,
char * command )

Transmit function.

Parameters
ctxClick object.
tx_dataData to be transmitted

@description This function allows user to transmit data to the BGX module.

Note
This function will send '\r' character automatically at the end of the tx_data transmitting.

◆ ble7_set_cts()

void ble7_set_cts ( ble7_t * ctx,
uint8_t state )

CTS Pin Setting function.

Parameters
ctxClick object.
state0 or 1

@description This function sets CTS pin to the desired state.

◆ ble7_set_gp1()

void ble7_set_gp1 ( ble7_t * ctx,
uint8_t state )

GP1 Pin Setting function.

Parameters
ctxClick object.
state0 or 1

@description This function sets GP1 pin to the desired state.