iotexpresslink3 2.1.0.0
IoT ExpressLink 3 Click Driver

API for configuring and manipulating IoT ExpressLink 3 Click driver. More...

Topics

 IoT ExpressLink 3 Device Settings
 Settings for registers of IoT ExpressLink 3 Click driver.
 
 IoT ExpressLink 3 MikroBUS Map
 MikroBUS pin mapping of IoT ExpressLink 3 Click driver.
 

Functions

void iotexpresslink3_cfg_setup (iotexpresslink3_cfg_t *cfg)
 IoT ExpressLink 3 configuration object setup function.
 
err_t iotexpresslink3_init (iotexpresslink3_t *ctx, iotexpresslink3_cfg_t *cfg)
 IoT ExpressLink 3 initialization function.
 
err_t iotexpresslink3_generic_write (iotexpresslink3_t *ctx, uint8_t *data_in, uint16_t len)
 IoT ExpressLink 3 data writing function.
 
err_t iotexpresslink3_generic_read (iotexpresslink3_t *ctx, uint8_t *data_out, uint16_t len)
 IoT ExpressLink 3 data reading function.
 
void iotexpresslink3_send_cmd (iotexpresslink3_t *ctx, uint8_t *cmd)
 IoT ExpressLink 3 send cmd function.
 
void iotexpresslink3_enable_device (iotexpresslink3_t *ctx)
 IoT ExpressLink 3 enable device function.
 
void iotexpresslink3_disable_device (iotexpresslink3_t *ctx)
 IoT ExpressLink 3 disable device function.
 
void iotexpresslink3_reset_device (iotexpresslink3_t *ctx)
 IoT ExpressLink 3 reset device function.
 
uint8_t iotexpresslink3_get_rsn_pin (iotexpresslink3_t *ctx)
 IoT ExpressLink 3 get rsn pin function.
 
uint8_t iotexpresslink3_get_event_pin (iotexpresslink3_t *ctx)
 IoT ExpressLink 3 get event pin function.
 
uint8_t iotexpresslink3_get_wake_pin (iotexpresslink3_t *ctx)
 IoT ExpressLink 3 get wake pin function.
 

Detailed Description

API for configuring and manipulating IoT ExpressLink 3 Click driver.

Any initialization code needed for MCU to function properly. Do not remove this line or clock might not be set correctly.

Function Documentation

◆ iotexpresslink3_cfg_setup()

void iotexpresslink3_cfg_setup ( iotexpresslink3_cfg_t * cfg)

IoT ExpressLink 3 configuration object setup function.

This function initializes click configuration structure to initial values.

Parameters
[out]cfg: Click configuration structure. See iotexpresslink3_cfg_t object definition for detailed explanation.
Returns
Nothing.
Note
The all used pins will be set to unconnected state.

◆ iotexpresslink3_disable_device()

void iotexpresslink3_disable_device ( iotexpresslink3_t * ctx)

IoT ExpressLink 3 disable device function.

This function disables device by setting the RST pin to low logic state.

Parameters
[in]ctx: Click context object. See iotexpresslink3_t object definition for detailed explanation.
Returns
None.
Note
None.

◆ iotexpresslink3_enable_device()

void iotexpresslink3_enable_device ( iotexpresslink3_t * ctx)

IoT ExpressLink 3 enable device function.

This function enables device by setting the RST pin to high logic state.

Parameters
[in]ctx: Click context object. See iotexpresslink3_t object definition for detailed explanation.
Returns
None.
Note
None.

◆ iotexpresslink3_generic_read()

err_t iotexpresslink3_generic_read ( iotexpresslink3_t * ctx,
uint8_t * data_out,
uint16_t len )

IoT ExpressLink 3 data reading function.

This function reads a desired number of data bytes by using UART serial interface.

Parameters
[in]ctx: Click context object. See iotexpresslink3_t object definition for detailed explanation.
[out]data_out: Output read data.
[in]len: Number of bytes to be read.
Returns
  • >0 - Number of data bytes read,
  • <=0 - Error/Empty Ring buffer. See #err_t definition for detailed explanation.
Note
None.

◆ iotexpresslink3_generic_write()

err_t iotexpresslink3_generic_write ( iotexpresslink3_t * ctx,
uint8_t * data_in,
uint16_t len )

IoT ExpressLink 3 data writing function.

This function writes a desired number of data bytes by using UART serial interface.

Parameters
[in]ctx: Click context object. See iotexpresslink3_t object definition for detailed explanation.
[in]data_in: Data buffer for sending.
[in]len: Number of bytes for sending.
Returns
  • >=0 - Success,
  • <0 - Error. See #err_t definition for detailed explanation.
Note
None.

◆ iotexpresslink3_get_event_pin()

uint8_t iotexpresslink3_get_event_pin ( iotexpresslink3_t * ctx)

IoT ExpressLink 3 get event pin function.

This function returns the event pin logic state.

Parameters
[in]ctx: Click context object. See iotexpresslink3_t object definition for detailed explanation.
Returns
Pin logic state.
Note
None.

◆ iotexpresslink3_get_rsn_pin()

uint8_t iotexpresslink3_get_rsn_pin ( iotexpresslink3_t * ctx)

IoT ExpressLink 3 get rsn pin function.

This function returns the RSN pin logic state.

Parameters
[in]ctx: Click context object. See iotexpresslink3_t object definition for detailed explanation.
Returns
Pin logic state.
Note
None.

◆ iotexpresslink3_get_wake_pin()

uint8_t iotexpresslink3_get_wake_pin ( iotexpresslink3_t * ctx)

IoT ExpressLink 3 get wake pin function.

This function returns the wake pin logic state.

Parameters
[in]ctx: Click context object. See iotexpresslink3_t object definition for detailed explanation.
Returns
Pin logic state.
Note
None.

◆ iotexpresslink3_init()

err_t iotexpresslink3_init ( iotexpresslink3_t * ctx,
iotexpresslink3_cfg_t * cfg )

IoT ExpressLink 3 initialization function.

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

Parameters
[out]ctx: Click context object. See iotexpresslink3_t object definition for detailed explanation.
[in]cfg: Click configuration structure. See iotexpresslink3_cfg_t object definition for detailed explanation.
Returns
  • 0 - Success,
  • -1 - Error. See #err_t definition for detailed explanation.
Note
None.

◆ iotexpresslink3_reset_device()

void iotexpresslink3_reset_device ( iotexpresslink3_t * ctx)

IoT ExpressLink 3 reset device function.

This function resets device by toggling the RST pin state.

Parameters
[in]ctx: Click context object. See iotexpresslink3_t object definition for detailed explanation.
Returns
None.
Note
None.

◆ iotexpresslink3_send_cmd()

void iotexpresslink3_send_cmd ( iotexpresslink3_t * ctx,
uint8_t * cmd )

IoT ExpressLink 3 send cmd function.

This function send command string by using UART serial interface.

Parameters
[in]ctx: Click context object. See iotexpresslink3_t object definition for detailed explanation.
[in]cmd: Command string to send.
Returns
None.
Note
None.