nbiot  2.0.0.0
Functions
Public function

Functions

void nbiot_cfg_setup (nbiot_cfg_t *cfg)
 Config Object Initialization function. More...
 
NBIOT_RETVAL nbiot_init (nbiot_t *ctx, nbiot_cfg_t *cfg)
 Initialization function. More...
 
void nbiot_module_power (nbiot_t *ctx)
 Power up modules. More...
 
void nbiot_reset (nbiot_t *ctx)
 Reset module. More...
 
void nbiot_generic_write (nbiot_t *ctx, char *data_buf, uint16_t len)
 Generic write function. More...
 
int32_t nbiot_generic_read (nbiot_t *ctx, char *data_buf, uint16_t max_len)
 Generic read function. More...
 
void nbiot_send_command (nbiot_t *ctx, char *command)
 Send Command function. More...
 

Detailed Description

Function Documentation

◆ nbiot_cfg_setup()

void nbiot_cfg_setup ( nbiot_cfg_t cfg)

Config Object Initialization function.

Parameters
cfgClick configuration structure.

This function initializes click configuration structure to init state.

Note
All used pins will be set to unconnected state.

◆ nbiot_generic_read()

int32_t nbiot_generic_read ( nbiot_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.

◆ nbiot_generic_write()

void nbiot_generic_write ( nbiot_t ctx,
char *  data_buf,
uint16_t  len 
)

Generic write function.

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

◆ nbiot_init()

NBIOT_RETVAL nbiot_init ( nbiot_t ctx,
nbiot_cfg_t cfg 
)

Initialization function.

Parameters
ctxClick object.
cfgClick configuration structure.

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

◆ nbiot_module_power()

void nbiot_module_power ( nbiot_t ctx)

Power up modules.

Parameters
ctxClick object.

◆ nbiot_reset()

void nbiot_reset ( nbiot_t ctx)

Reset module.

Parameters
ctxClick object.

◆ nbiot_send_command()

void nbiot_send_command ( nbiot_t ctx,
char *  command 
)

Send Command function.

Parameters
ctxClick object.
commandCommand. This function sends comamnd.