lteiot4 2.0.0.0
|
API for configuring and manipulating LTE IoT 4 Click driver. More...
Topics | |
LTE IoT 4 Device Settings | |
Settings for registers of LTE IoT 4 Click driver. | |
LTE IoT 4 MikroBUS Map | |
MikroBUS pin mapping of LTE IoT 4 Click driver. | |
Functions | |
void | lteiot4_cfg_setup (lteiot4_cfg_t *cfg) |
LTE IoT 4 configuration object setup function. | |
err_t | lteiot4_init (lteiot4_t *ctx, lteiot4_cfg_t *cfg) |
LTE IoT 4 initialization function. | |
err_t | lteiot4_default_cfg (lteiot4_t *ctx) |
LTE IoT 4 default configuration function. | |
err_t | lteiot4_generic_write (lteiot4_t *ctx, char *data_buf, uint16_t len) |
LTE IoT 4 data writing function. | |
err_t | lteiot4_generic_read (lteiot4_t *ctx, char *data_buf, uint16_t max_len) |
LTE IoT 4 data reading function. | |
void | lteiot4_set_rst (lteiot4_t *ctx, uint8_t state) |
Sets state of the rst pin setting. | |
void | lteiot4_send_cmd (lteiot4_t *ctx, char *cmd) |
Send command function. | |
void | lteiot4_set_sim_apn (lteiot4_t *ctx, char *sim_apn) |
Set sim card APN. | |
API for configuring and manipulating LTE IoT 4 Click driver.
Any initialization code needed for MCU to function properly. Do not remove this line or clock might not be set correctly.
void lteiot4_cfg_setup | ( | lteiot4_cfg_t * | cfg | ) |
LTE IoT 4 configuration object setup function.
This function initializes click configuration structure to initial values.
[out] | cfg | : Click configuration structure. See lteiot4_cfg_t object definition for detailed explanation. |
err_t lteiot4_default_cfg | ( | lteiot4_t * | ctx | ) |
LTE IoT 4 default configuration function.
This function executes a default configuration of LTE IoT 4 click board.
[in] | ctx | : Click context object. See lteiot4_t object definition for detailed explanation. |
0
- Success, -1
- Error.err_t lteiot4_generic_read | ( | lteiot4_t * | ctx, |
char * | data_buf, | ||
uint16_t | max_len ) |
LTE IoT 4 data reading function.
This function reads a desired number of data bytes by using UART serial interface.
[in] | ctx | : Click context object. See lteiot4_t object definition for detailed explanation. |
[out] | data_buf | : Output read data. |
[in] | max_len | : Number of bytes to be read. |
>0
- Number of data bytes read, <=0
- Error/Empty Ring buffer.err_t lteiot4_generic_write | ( | lteiot4_t * | ctx, |
char * | data_buf, | ||
uint16_t | len ) |
LTE IoT 4 data writing function.
This function writes a desired number of data bytes by using UART serial interface.
[in] | ctx | : Click context object. See lteiot4_t object definition for detailed explanation. |
[in] | data_buf | : Data buffer for sending. |
[in] | len | : Number of bytes for sending. |
>=0
- Success, <0
- Error.err_t lteiot4_init | ( | lteiot4_t * | ctx, |
lteiot4_cfg_t * | cfg ) |
LTE IoT 4 initialization function.
This function initializes all necessary pins and peripherals used for this click board.
[out] | ctx | : Click context object. See lteiot4_t object definition for detailed explanation. |
[in] | cfg | : Click configuration structure. See lteiot4_cfg_t object definition for detailed explanation. |
0
- Success, -1
- Error.void lteiot4_send_cmd | ( | lteiot4_t * | ctx, |
char * | cmd ) |
Send command function.
This function sends the specified command to the click module.
[in] | ctx | : Click context object. See lteiot4_t object definition for detailed explanation. |
[in] | cmd | Command variable. |
void lteiot4_set_rst | ( | lteiot4_t * | ctx, |
uint8_t | state ) |
Sets state of the rst pin setting.
This function sets rst pin output to state setting.
[in] | ctx | Click context object. See lteiot4_t object definition for detailed explanation. |
[in] | state | Output value setting.
|