lriot 2.1.0.0
lr1110_modem_helper.h
Go to the documentation of this file.
1
32#ifndef LR1110_MODEM_HELPER_H
33#define LR1110_MODEM_HELPER_H
34
35#ifdef __cplusplus
36extern "C" {
37#endif
38
39/*
40 * -----------------------------------------------------------------------------
41 * --- DEPENDENCIES ------------------------------------------------------------
42 */
43
44#include <stdbool.h>
45#include <stdint.h>
50
51/*
52 * -----------------------------------------------------------------------------
53 * --- PUBLIC FUNCTIONS PROTOTYPES ---------------------------------------------
54 */
55
65err_t lr1110_modem_helper_get_utc_time( lriot_t *ctx, uint32_t* time );
66
77err_t lr1110_modem_helper_gnss_get_gnss_week_number_rollover( lriot_t *ctx, uint8_t* gnss_week_number_rollover );
78
92 uint32_t* date, uint8_t gnss_week_number_rollover );
93
103err_t lr1110_modem_helper_gnss_get_result_destination( uint8_t* result_buffer, uint16_t result_buffer_size, uint8_t* destination );
104
115err_t lr1110_modem_helper_gnss_get_event_type( uint8_t* result_buffer,
116 uint16_t result_buffer_size,
118
128
129
130#ifdef __cplusplus
131}
132#endif
133
134#endif // LR1110_MODEM_HELPER_H
135
136/* --- EOF ------------------------------------------------------------------ */
modem driver common definition for LR1110
GNSS scan driver definition for LR1110 modem.
lr1110_modem_gnss_scan_done_event_t
GNSS Event value for Host destinated message.
Definition lr1110_modem_gnss_types.h:101
err_t lr1110_modem_helper_get_event_data(lriot_t *ctx, lr1110_modem_event_t *modem_event)
Extract the event data contained in the event field buffer.
err_t lr1110_modem_helper_gnss_get_gnss_week_number_rollover(lriot_t *ctx, uint8_t *gnss_week_number_rollover)
Compute the Gnss Week Number Rollover.
err_t lr1110_modem_helper_get_utc_time(lriot_t *ctx, uint32_t *time)
Query the current UTC time.
err_t lr1110_modem_helper_gnss_get_almanac_date_by_index(lriot_t *ctx, uint8_t sv_id, uint32_t *date, uint8_t gnss_week_number_rollover)
Read the almanac date by SV index.
err_t lr1110_modem_helper_gnss_get_event_type(uint8_t *result_buffer, uint16_t result_buffer_size, lr1110_modem_gnss_scan_done_event_t *event_type)
Extract the event type from the result returned by a GNSS scan,.
err_t lr1110_modem_helper_gnss_get_result_destination(uint8_t *result_buffer, uint16_t result_buffer_size, uint8_t *destination)
Extract the destination from the result returned by a GNSS scan.
helper functions types definition for LR1110 modem
LoRaWAN driver for LR1110 modem.
Structure holding event-related data.
Definition lr1110_modem_helper_types.h:120
LR IoT Click context object.
Definition lriot.h:273