gnss8 2.0.0.0
|
API for configuring and manipulating GNSS 8 Click driver. More...
Functions | |
void | gnss8_cfg_setup (gnss8_cfg_t *cfg) |
GNSS 8 configuration object setup function. | |
err_t | gnss8_init (gnss8_t *ctx, gnss8_cfg_t *cfg) |
GNSS 8 initialization function. | |
err_t | gnss8_generic_write (gnss8_t *ctx, char *data_buf, uint16_t len) |
Data writing function. | |
err_t | gnss8_generic_read (gnss8_t *ctx, char *data_buf, uint16_t max_len) |
Data reading function. | |
void | gnss8_set_ap_req (gnss8_t *ctx, uint8_t state) |
Set AP request pin state. | |
uint8_t | gnss8_get_req (gnss8_t *ctx) |
Get request pin state. | |
uint8_t | gnss8_get_int (gnss8_t *ctx) |
Get interrupt pin state. | |
uint8_t | gnss8_get_rdy (gnss8_t *ctx) |
Get ready pin state. | |
API for configuring and manipulating GNSS 8 Click driver.
void gnss8_cfg_setup | ( | gnss8_cfg_t * | cfg | ) |
GNSS 8 configuration object setup function.
This function initializes click configuration structure to initial values.
[out] | cfg | : Click configuration structure. See gnss8_cfg_t object definition for detailed explanation. |
err_t gnss8_generic_read | ( | gnss8_t * | ctx, |
char * | data_buf, | ||
uint16_t | max_len ) |
Data reading function.
This function reads a desired number of data bytes by using UART serial interface.
[in] | ctx | : Click context object. See gnss8_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 gnss8_generic_write | ( | gnss8_t * | ctx, |
char * | data_buf, | ||
uint16_t | len ) |
Data writing function.
This function writes a desired number of data bytes by using UART serial interface.
[in] | ctx | : Click context object. See gnss8_t object definition for detailed explanation. |
[in] | data_buf | : Data buffer for sending. |
[in] | len | : Number of bytes for sending. |
>=0
- Success, <0
- Error.uint8_t gnss8_get_int | ( | gnss8_t * | ctx | ) |
Get interrupt pin state.
This function reads interrupt pin to logic 1/0.
[in] | ctx | : Click context object. See gnss8_t object definition for detailed explanation. |
uint8_t gnss8_get_rdy | ( | gnss8_t * | ctx | ) |
Get ready pin state.
This function reads ready pin to logic 1/0.
[in] | ctx | : Click context object. See gnss8_t object definition for detailed explanation. |
uint8_t gnss8_get_req | ( | gnss8_t * | ctx | ) |
Get request pin state.
This function reads request pin to logic 1/0.
[in] | ctx | : Click context object. See gnss8_t object definition for detailed explanation. |
err_t gnss8_init | ( | gnss8_t * | ctx, |
gnss8_cfg_t * | cfg ) |
GNSS 8 initialization function.
This function initializes all necessary pins and peripherals used for this click board.
[out] | ctx | : Click context object. See gnss8_t object definition for detailed explanation. |
[in] | cfg | : Click configuration structure. See gnss8_cfg_t object definition for detailed explanation. |
0
- Success, -1
- Error.