12#ifndef STM87MXX_APP_SRV_H
13#define STM87MXX_APP_SRV_H
21#define APP_MDM_CMD_TIMEOUT K_SECONDS(180)
31#define GNSS_NB_MAX_POSITION 100
37#define GNSS_CONSTELLATION_ID 0
42#define GNSS_FORMAT_TYPE 0
48#define GNSS_FORMAT_ST_POSITION 1
50#define GNSS_FORMAT_ST_ACCURACY 0
52#define GNSS_FORMAT_ST_SATELLITES 0
54#define GNSS_FORMAT_ST_ORIENTATION 0
60#define GNSS_NMEA_GPGGA 1
62#define GNSS_NMEA_GPGSA 0
64#define GNSS_NMEA_GPGSV 0
66#define GNSS_NMEA_GPGLL 1
68#define GNSS_NMEA_GPRMC 0
70#define GNSS_NMEA_GPVTG 1
91#define HOPPING_TIME 1024
void st87mxx_app_services_init(void)
API to start the application services (GNSS, WSCAN, RSSI capture).
void st87mxx_get_beacon_data_callback_t(char const *const string)
Callback that catches the WIFI scan data when it is available.
Definition st87mxx_app_services.h:125
void st87mxx_wifiscan_stop(void)
API to stop the WIFI scan.
int st87mxx_wifiscan(st87mxx_wifiscan_params *wscan_params)
API to start the WIFI scan (=WSCAN) feature for positioning purpose.
void st87mxx_get_rssi_callback_t(char const *const string)
Callback to retrieve the RSSI values.
Definition st87mxx_app_services.h:225
sequence_state
Application services sequence state.
Definition st87mxx_app_services.h:108
@ SEQUENCE_ONGOING
A sequence is on-going.
Definition st87mxx_app_services.h:112
@ SEQUENCE_TIMED_OUT
The timeout for a sequence has elapsed.
Definition st87mxx_app_services.h:114
@ SEQUENCE_NONE
No sequence is started.
Definition st87mxx_app_services.h:110
void st87mxx_get_pos_callback_t(char const *const string)
Callback to retrieve the positions.
Definition st87mxx_app_services.h:165
int st87mxx_getrssi(st87mxx_get_rssi_callback_t *get_rssi_callback_func)
API to get the RSSI in an asynchronous way.
void st87mxx_gnss_stop(void)
API to stop the GNSS feature.
int st87mxx_gnss_getfix(uint32_t nb_position, st87mxx_get_pos_callback_t *get_pos_callback_func, uint32_t timeout)
API to get ST87Mxx GNSS position.
sequence_state st87mxx_app_services_getstate(void)
API to get the state of the application services sequence.
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
Parameters for the ST87Mxx WIFI scan operation.
Definition st87mxx_app_services.h:134
char * channel_list
Pointer to the string list of Wifi channels, in the range [1,14], e.g.
Definition st87mxx_app_services.h:138
uint32_t timeout
Timeout in sec.
Definition st87mxx_app_services.h:148
st87mxx_get_beacon_data_callback_t * get_beacon_data_callback_func
Pointer to callback function called each time beacon data is available.
Definition st87mxx_app_services.h:146
uint32_t nb_scan_iterations
Number of times the scan will run the channel list.
Definition st87mxx_app_services.h:142