lriot 2.1.0.0
lr1110_modem_helper_types.h File Reference

helper functions types definition for LR1110 modem More...

#include <stdbool.h>
#include <stdint.h>

Go to the source code of this file.

Data Structures

struct  lr1110_modem_event_t
 Structure holding event-related data. More...
 

Macros

#define LR1110_MODEM_HELPER_INITAL_GNSS_DATE_SECONDS   315964800
 Initial GNSS date in second, 6 January 1980.
 
#define LR1110_MODEM_HELPER_GNSS_LEAP_SECONDS_OFFSET   18
 GNSS leap seconds offset in second.
 
#define LR1110_MODEM_HELPER_NB_WEEK_PER_WRAP   1024
 GPS week number rollover.
 
#define LR1110_MODEM_HELPER_NB_SEC_PER_HOUR   3600
 Number of seconds in per hour.
 
#define LR1110_MODEM_HELPER_NB_HOUR_PER_DAY   24
 Number of hours per day.
 
#define LR1110_MODEM_HELPER_NB_DAY_PER_WEEK   7
 Number of days per week.
 
#define LR1110_MODEM_HELPER_MAX_DOWNLINK_LENGTH   242
 Maximum payload size in byte of a downlink.
 
#define LR1110_MODEM_HELPER_GNSS_MAX_NAV_LENGTH   255
 Maximum payload size in byte of a nav message.
 
#define LR1110_MODEM_HELPER_WIFI_MAX_BUFFER_LENGTH   948
 Maximum payload size in byte of a Wi-Fi result.
 

Enumerations

enum  lr1110_modem_helper_status_t { LR1110_MODEM_HELPER_STATUS_OK = 0 , LR1110_MODEM_HELPER_STATUS_ERROR = 3 }
 LR1110 Modem helper status. More...
 

Detailed Description

helper functions types definition for LR1110 modem

Revised BSD License Copyright Semtech Corporation 2020. All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  • Neither the name of the Semtech corporation nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

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.

Macro Definition Documentation

◆ LR1110_MODEM_HELPER_GNSS_LEAP_SECONDS_OFFSET

#define LR1110_MODEM_HELPER_GNSS_LEAP_SECONDS_OFFSET   18

GNSS leap seconds offset in second.

◆ LR1110_MODEM_HELPER_GNSS_MAX_NAV_LENGTH

#define LR1110_MODEM_HELPER_GNSS_MAX_NAV_LENGTH   255

Maximum payload size in byte of a nav message.

◆ LR1110_MODEM_HELPER_INITAL_GNSS_DATE_SECONDS

#define LR1110_MODEM_HELPER_INITAL_GNSS_DATE_SECONDS   315964800

Initial GNSS date in second, 6 January 1980.

◆ LR1110_MODEM_HELPER_MAX_DOWNLINK_LENGTH

#define LR1110_MODEM_HELPER_MAX_DOWNLINK_LENGTH   242

Maximum payload size in byte of a downlink.

◆ LR1110_MODEM_HELPER_NB_DAY_PER_WEEK

#define LR1110_MODEM_HELPER_NB_DAY_PER_WEEK   7

Number of days per week.

◆ LR1110_MODEM_HELPER_NB_HOUR_PER_DAY

#define LR1110_MODEM_HELPER_NB_HOUR_PER_DAY   24

Number of hours per day.

◆ LR1110_MODEM_HELPER_NB_SEC_PER_HOUR

#define LR1110_MODEM_HELPER_NB_SEC_PER_HOUR   3600

Number of seconds in per hour.

◆ LR1110_MODEM_HELPER_NB_WEEK_PER_WRAP

#define LR1110_MODEM_HELPER_NB_WEEK_PER_WRAP   1024

GPS week number rollover.

◆ LR1110_MODEM_HELPER_WIFI_MAX_BUFFER_LENGTH

#define LR1110_MODEM_HELPER_WIFI_MAX_BUFFER_LENGTH   948

Maximum payload size in byte of a Wi-Fi result.

Enumeration Type Documentation

◆ lr1110_modem_helper_status_t

LR1110 Modem helper status.

Enumerator
LR1110_MODEM_HELPER_STATUS_OK 
LR1110_MODEM_HELPER_STATUS_ERROR