lriot 2.1.0.0
|
GNSS scan driver types for LR1110. More...
#include <stdbool.h>
#include <stdint.h>
Go to the source code of this file.
Data Structures | |
struct | lr1110_gnss_solver_assistance_position_s |
Assistance position. More... | |
struct | lr1110_gnss_detected_satellite_s |
Detected SV structure. More... | |
struct | lr1110_gnss_timings_s |
GNSS timings of the LR1110. More... | |
struct | lr1110_gnss_version_s |
Version structure of the LR1110 GNSS firmware. More... | |
struct | lr1110_gnss_context_status_s |
Structure for GNSS context status. More... | |
Typedefs | |
typedef uint8_t | lr1110_gnss_satellite_id_t |
Satellite ID type. | |
typedef uint8_t | lr1110_gnss_constellation_mask_t |
Bit mask of constellation configurations. | |
typedef enum lr1110_gnss_error_code_e | lr1110_gnss_error_code_t |
GNSS error codes. | |
typedef enum lr1110_gnss_freq_search_space_e | lr1110_gnss_freq_search_space_t |
GNSS frequency search space. | |
typedef uint32_t | lr1110_gnss_date_t |
Representation of absolute time for GNSS operations. | |
typedef uint8_t | lr1110_gnss_almanac_full_read_bytestream_t[LR1110_GNSS_FULL_ALMANAC_READ_BUFFER_SIZE] |
Buffer that holds data for all almanacs full update - when reading. | |
typedef uint8_t | lr1110_gnss_context_status_bytestream_t[LR1110_GNSS_CONTEXT_STATUS_LENGTH] |
Buffer that holds data for context status. | |
typedef struct lr1110_gnss_solver_assistance_position_s | lr1110_gnss_solver_assistance_position_t |
Assistance position. | |
typedef struct lr1110_gnss_detected_satellite_s | lr1110_gnss_detected_satellite_t |
Detected SV structure. | |
typedef struct lr1110_gnss_timings_s | lr1110_gnss_timings_t |
GNSS timings of the LR1110. | |
typedef struct lr1110_gnss_version_s | lr1110_gnss_version_t |
Version structure of the LR1110 GNSS firmware. | |
typedef struct lr1110_gnss_context_status_s | lr1110_gnss_context_status_t |
Structure for GNSS context status. | |
GNSS scan driver types for LR1110.
The Clear BSD License Copyright Semtech Corporation 2021. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted (subject to the limitations in the disclaimer below) provided that the following conditions are met:
NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SEMTECH CORPORATION BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#define LR1110_GNSS_CONTEXT_STATUS_LENGTH ( 9 ) |
Size of the almanac of the GNSS context status buffer.
#define LR1110_GNSS_DMC_ALMANAC_UPDATE_BEIDOU_MASK ( 0x02UL << LR1110_GNSS_DMC_ALMANAC_UPDATE_POS ) |
#define LR1110_GNSS_DMC_ALMANAC_UPDATE_GPS_MASK ( 0x01UL << LR1110_GNSS_DMC_ALMANAC_UPDATE_POS ) |
#define LR1110_GNSS_DMC_ALMANAC_UPDATE_POS ( 1U ) |
#define LR1110_GNSS_DMC_FREQUENCY_SEARCH_SPACE_LSB_MASK ( 0x01UL << LR1110_GNSS_DMC_FREQUENCY_SEARCH_SPACE_LSB_POS ) |
#define LR1110_GNSS_DMC_FREQUENCY_SEARCH_SPACE_LSB_POS ( 7U ) |
#define LR1110_GNSS_DMC_FREQUENCY_SEARCH_SPACE_MSB_MASK ( 0x01UL << LR1110_GNSS_DMC_FREQUENCY_SEARCH_SPACE_MSB_POS ) |
#define LR1110_GNSS_DMC_FREQUENCY_SEARCH_SPACE_MSB_POS ( 0U ) |
#define LR1110_GNSS_FULL_ALMANAC_READ_BUFFER_SIZE ( ( LR1110_GNSS_FULL_UPDATE_N_ALMANACS * LR1110_GNSS_SINGLE_ALMANAC_READ_SIZE ) + 4 ) |
Size of the whole almanac when reading.
#define LR1110_GNSS_FULL_UPDATE_N_ALMANACS ( 128 ) |
Number of almanacs in full update payload.
#define LR1110_GNSS_MAX_SIZE_ARRAY 2820 |
Maximal buffer size.
(128sv * 22bytes + 4bytes for CRC)
#define LR1110_GNSS_SINGLE_ALMANAC_READ_SIZE ( 22 ) |
Size of the almanac of a single satellite when reading.
#define LR1110_GNSS_SINGLE_ALMANAC_WRITE_SIZE ( 20 ) |
Size of the almanac of a single satellite when writing.
typedef uint8_t lr1110_gnss_almanac_full_read_bytestream_t[LR1110_GNSS_FULL_ALMANAC_READ_BUFFER_SIZE] |
Buffer that holds data for all almanacs full update - when reading.
typedef uint8_t lr1110_gnss_constellation_mask_t |
Bit mask of constellation configurations.
typedef uint8_t lr1110_gnss_context_status_bytestream_t[LR1110_GNSS_CONTEXT_STATUS_LENGTH] |
Buffer that holds data for context status.
typedef struct lr1110_gnss_context_status_s lr1110_gnss_context_status_t |
Structure for GNSS context status.
typedef uint32_t lr1110_gnss_date_t |
Representation of absolute time for GNSS operations.
The GNSS absolute time is represented as a 32 bits word that is the number of seconds elapsed since January 6th 1980, 00:00:00
The GNSS absolute time must take into account the Leap Seconds between UTC time and GPS time.
typedef struct lr1110_gnss_detected_satellite_s lr1110_gnss_detected_satellite_t |
Detected SV structure.
typedef enum lr1110_gnss_error_code_e lr1110_gnss_error_code_t |
GNSS error codes.
GNSS frequency search space.
typedef uint8_t lr1110_gnss_satellite_id_t |
Satellite ID type.
Assistance position.
typedef struct lr1110_gnss_timings_s lr1110_gnss_timings_t |
GNSS timings of the LR1110.
typedef struct lr1110_gnss_version_s lr1110_gnss_version_t |
Version structure of the LR1110 GNSS firmware.
Message to host indicating the status of the message.
bit mask indicating which information is added in the output payload - to be used with LR1110_GNSS_SCAN_MODE_3_SINGLE_SCAN_AND_5_FAST_SCANS
Enumerator | |
---|---|
LR1110_GNSS_RESULTS_DOPPLER_ENABLE_MASK | Add Doppler information if set. |
LR1110_GNSS_RESULTS_DOPPLER_MASK | Add up to 14 Doppler if set - up to 7 if not. Valid if LR1110_GNSS_RESULTS_DOPPLER_ENABLE_MASK is set |
LR1110_GNSS_RESULTS_BIT_CHANGE_MASK | Add bit change if set. |
Bit mask indicating which information is added in the output payload - to be used with LR1110_GNSS_SCAN_MODE_0_SINGLE_SCAN_LEGACY.