neomesh915mhz 2.1.0.0
|
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. | |
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.
void neomesh915mhz_cfg_setup | ( | neomesh915mhz_cfg_t * | cfg | ) |
NeoMesh 915MHz configuration object setup function.
This function initializes click configuration structure to initial values.
[out] | cfg | : Click configuration structure. See neomesh915mhz_cfg_t object definition for detailed explanation. |
uint8_t neomesh915mhz_get_app_pin | ( | neomesh915mhz_t * | ctx | ) |
NeoMesh 915MHz get app pin function.
This function returns the APP pin logic state.
[in] | ctx | : Click context object. See neomesh915mhz_t object definition for detailed explanation. |
uint8_t neomesh915mhz_get_cts_pin | ( | neomesh915mhz_t * | ctx | ) |
NeoMesh 915MHz get cts pin function.
This function returns the CTS pin logic state.
[in] | ctx | : Click context object. See neomesh915mhz_t object definition for detailed explanation. |
uint8_t neomesh915mhz_get_wup_pin | ( | neomesh915mhz_t * | ctx | ) |
NeoMesh 915MHz get wup pin function.
This function returns the WUP pin logic state.
[in] | ctx | : Click context object. See neomesh915mhz_t object definition for detailed explanation. |
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.
[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. |
0
- Success, -1
- Error. See #err_t definition for detailed explanation. 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.
[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. |
0
- Success, -1
- Error, frame is not read correctly, -2
- Timeout error. See #err_t definition for detailed explanation. 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.
[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. |
0
- Success, -1
- Error, frame is not read correctly, -2
- Timeout error. See #err_t definition for detailed explanation. 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.
[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. |
0
- Success, -2
- Timeout error. See #err_t definition for detailed explanation. 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.
[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. |
0
- Success, -2
- Timeout error. See #err_t definition for detailed explanation. 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.
[in] | ctx | : Click context object. See neomesh915mhz_t object definition for detailed explanation. |
[in] | state | : Pin logic state. |
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.
[in] | ctx | : Click context object. See neomesh915mhz_t object definition for detailed explanation. |
[in] | state | : Pin logic state. |