neomesh915mhz 2.1.0.0
NeoMesh 915MHz Click Driver

API for configuring and manipulating NeoMesh 915MHz Click driver. More...

Topics

 NeoMesh 915MHz Device Settings
 Settings for registers of NeoMesh 915MHz Click driver.
 
 NeoMesh 915MHz MikroBUS Map
 MikroBUS pin mapping of NeoMesh 915MHz Click driver.
 

Functions

void neomesh915mhz_cfg_setup (neomesh915mhz_cfg_t *cfg)
 NeoMesh 915MHz configuration object setup function.
 
err_t neomesh915mhz_init (neomesh915mhz_t *ctx, neomesh915mhz_cfg_t *cfg)
 NeoMesh 915MHz initialization function.
 
err_t neomesh915mhz_send_aapi_frame (neomesh915mhz_t *ctx, neomesh915mhz_aapi_frame_t *frame)
 NeoMesh 915MHz send aapi frame function.
 
err_t neomesh915mhz_read_aapi_frame (neomesh915mhz_t *ctx, neomesh915mhz_aapi_frame_t *frame)
 NeoMesh 915MHz read aapi frame function.
 
err_t neomesh915mhz_send_sapi_frame (neomesh915mhz_t *ctx, neomesh915mhz_sapi_frame_t *frame)
 NeoMesh 915MHz send sapi frame function.
 
err_t neomesh915mhz_read_sapi_frame (neomesh915mhz_t *ctx, neomesh915mhz_sapi_frame_t *frame)
 NeoMesh 915MHz read sapi frame function.
 
void neomesh915mhz_set_rst_pin (neomesh915mhz_t *ctx, uint8_t state)
 NeoMesh 915MHz set rst pin function.
 
void neomesh915mhz_set_wes_pin (neomesh915mhz_t *ctx, uint8_t state)
 NeoMesh 915MHz set wes pin function.
 
uint8_t neomesh915mhz_get_app_pin (neomesh915mhz_t *ctx)
 NeoMesh 915MHz get app pin function.
 
uint8_t neomesh915mhz_get_cts_pin (neomesh915mhz_t *ctx)
 NeoMesh 915MHz get cts pin function.
 
uint8_t neomesh915mhz_get_wup_pin (neomesh915mhz_t *ctx)
 NeoMesh 915MHz get wup pin function.
 

Detailed Description

API for configuring and manipulating NeoMesh 915MHz 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

◆ neomesh915mhz_cfg_setup()

void neomesh915mhz_cfg_setup ( neomesh915mhz_cfg_t * cfg)

NeoMesh 915MHz configuration object setup function.

This function initializes click configuration structure to initial values.

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

◆ neomesh915mhz_get_app_pin()

uint8_t neomesh915mhz_get_app_pin ( neomesh915mhz_t * ctx)

NeoMesh 915MHz get app pin function.

This function returns the APP pin logic state.

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

◆ neomesh915mhz_get_cts_pin()

uint8_t neomesh915mhz_get_cts_pin ( neomesh915mhz_t * ctx)

NeoMesh 915MHz get cts pin function.

This function returns the CTS pin logic state.

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

◆ neomesh915mhz_get_wup_pin()

uint8_t neomesh915mhz_get_wup_pin ( neomesh915mhz_t * ctx)

NeoMesh 915MHz get wup pin function.

This function returns the WUP pin logic state.

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

◆ neomesh915mhz_init()

err_t neomesh915mhz_init ( neomesh915mhz_t * ctx,
neomesh915mhz_cfg_t * cfg )

NeoMesh 915MHz initialization function.

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

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

◆ neomesh915mhz_read_aapi_frame()

err_t neomesh915mhz_read_aapi_frame ( neomesh915mhz_t * ctx,
neomesh915mhz_aapi_frame_t * frame )

NeoMesh 915MHz read aapi frame function.

This function reads an AAPI frame by using UART serial interface.

Parameters
[in]ctx: Click context object. See neomesh915mhz_t object definition for detailed explanation.
[out]frame: AAPI frame structure read. See neomesh915mhz_aapi_frame_t object definition for detailed explanation.
Returns
  • 0 - Success,
  • -1 - Error, frame is not read correctly,
  • -2 - Timeout error. See #err_t definition for detailed explanation.
Note
None.

◆ neomesh915mhz_read_sapi_frame()

err_t neomesh915mhz_read_sapi_frame ( neomesh915mhz_t * ctx,
neomesh915mhz_sapi_frame_t * frame )

NeoMesh 915MHz read sapi frame function.

This function reads an SAPI frame by using UART serial interface.

Parameters
[in]ctx: Click context object. See neomesh915mhz_t object definition for detailed explanation.
[out]frame: SAPI frame structure read. See neomesh915mhz_sapi_frame_t object definition for detailed explanation.
Returns
  • 0 - Success,
  • -1 - Error, frame is not read correctly,
  • -2 - Timeout error. See #err_t definition for detailed explanation.
Note
None.

◆ neomesh915mhz_send_aapi_frame()

err_t neomesh915mhz_send_aapi_frame ( neomesh915mhz_t * ctx,
neomesh915mhz_aapi_frame_t * frame )

NeoMesh 915MHz send aapi frame function.

This function sends a desired AAPI frame by using UART serial interface.

Parameters
[in]ctx: Click context object. See neomesh915mhz_t object definition for detailed explanation.
[in]frame: AAPI frame structure to be sent. See neomesh915mhz_aapi_frame_t object definition for detailed explanation.
Returns
  • 0 - Success,
  • -2 - Timeout error. See #err_t definition for detailed explanation.
Note
None.

◆ neomesh915mhz_send_sapi_frame()

err_t neomesh915mhz_send_sapi_frame ( neomesh915mhz_t * ctx,
neomesh915mhz_sapi_frame_t * frame )

NeoMesh 915MHz send sapi frame function.

This function sends a desired SAPI frame by using UART serial interface.

Parameters
[in]ctx: Click context object. See neomesh915mhz_t object definition for detailed explanation.
[in]frame: SAPI frame structure to be sent. See neomesh915mhz_sapi_frame_t object definition for detailed explanation.
Returns
  • 0 - Success,
  • -2 - Timeout error. See #err_t definition for detailed explanation.
Note
None.

◆ neomesh915mhz_set_rst_pin()

void neomesh915mhz_set_rst_pin ( neomesh915mhz_t * ctx,
uint8_t state )

NeoMesh 915MHz set rst pin function.

This function sets the RST pin logic state.

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

◆ neomesh915mhz_set_wes_pin()

void neomesh915mhz_set_wes_pin ( neomesh915mhz_t * ctx,
uint8_t state )

NeoMesh 915MHz set wes pin function.

This function sets the WES pin logic state.

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