Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
st87mxx_app_services.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2026 STMicroelectronics
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
12
13#ifndef STM87MXX_APP_SRV_H
14#define STM87MXX_APP_SRV_H
15
22
28
30#define APP_MDM_CMD_TIMEOUT K_SECONDS(180)
31
33
39
41#define GNSS_NB_MAX_POSITION 100
47#define GNSS_CONSTELLATION_ID 0
52#define GNSS_FORMAT_TYPE 0
53
58#define GNSS_FORMAT_ST_POSITION 1
60#define GNSS_FORMAT_ST_ACCURACY 0
62#define GNSS_FORMAT_ST_SATELLITES 0
64#define GNSS_FORMAT_ST_ORIENTATION 0
65
70#define GNSS_NMEA_GPGGA 1
72#define GNSS_NMEA_GPGSA 0
74#define GNSS_NMEA_GPGSV 0
76#define GNSS_NMEA_GPGLL 1
78#define GNSS_NMEA_GPRMC 0
80#define GNSS_NMEA_GPVTG 1
81
83
89
98#define URC_MODE 1
102#define HOPPING_TIME 1024
108#define ANT_SEL 1
109
111
112
127
136typedef void (st87mxx_get_beacon_data_callback_t) (char const * const string);
137
161
162
170
176typedef void (st87mxx_get_pos_callback_t) (char const *const string);
177
202 st87mxx_get_pos_callback_t *get_pos_callback_func, uint32_t timeout);
203
208
225
230
236typedef void (st87mxx_get_rssi_callback_t) (char const *const string);
237
244int st87mxx_getrssi(st87mxx_get_rssi_callback_t *get_rssi_callback_func);
245
252
254
255#endif /* STM87MXX_APP_SRV_H */
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:136
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:236
sequence_state
Application services sequence state.
Definition st87mxx_app_services.h:119
void st87mxx_get_pos_callback_t(char const *const string)
Callback to retrieve the positions.
Definition st87mxx_app_services.h:176
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.
@ SEQUENCE_ONGOING
A sequence is on-going.
Definition st87mxx_app_services.h:123
@ SEQUENCE_TIMED_OUT
The timeout for a sequence has elapsed.
Definition st87mxx_app_services.h:125
@ SEQUENCE_NONE
No sequence is started.
Definition st87mxx_app_services.h:121
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
Parameters for the ST87Mxx WIFI scan operation.
Definition st87mxx_app_services.h:145
char * channel_list
Pointer to the string list of Wifi channels, in the range [1,14], e.g.
Definition st87mxx_app_services.h:149
uint32_t timeout
Timeout in sec.
Definition st87mxx_app_services.h:159
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:157
uint32_t nb_scan_iterations
Number of times the scan will run the channel list.
Definition st87mxx_app_services.h:153