Developer World
Spresense SDK Library v3.2.0-ebc0364
geofence.h
1/****************************************************************************
2 * arch/arm/include/cxd56xx/geofence.h
3 *
4 * Licensed to the Apache Software Foundation (ASF) under one or more
5 * contributor license agreements. See the NOTICE file distributed with
6 * this work for additional information regarding copyright ownership. The
7 * ASF licenses this file to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance with the
9 * License. You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
15 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
16 * License for the specific language governing permissions and limitations
17 * under the License.
18 *
19 ****************************************************************************/
20
21#ifndef __ARCH_ARM_INCLUDE_CXD56XX_GEOFENCE_H
22#define __ARCH_ARM_INCLUDE_CXD56XX_GEOFENCE_H
23
24#ifdef __cplusplus
25#define EXTERN extern "C"
26extern "C"
27{
28#else
29#define EXTERN extern
30#endif
31
39/* @{ */
40
49#define CXD56_GEOFENCE_IOCTL_START 1
50
59#define CXD56_GEOFENCE_IOCTL_STOP 2
60
69#define CXD56_GEOFENCE_IOCTL_ADD 3
70
79#define CXD56_GEOFENCE_IOCTL_MODIFY 4
80
89#define CXD56_GEOFENCE_IOCTL_DELETE 5
90
99#define CXD56_GEOFENCE_IOCTL_ALL_DELETE 6
100
110#define CXD56_GEOFENCE_IOCTL_GET_REGION_DATA 7
111
123#define CXD56_GEOFENCE_IOCTL_GET_USED_ID 8
124
134#define CXD56_GEOFENCE_IOCTL_GET_ALL_STATUS 9
135
144#define CXD56_GEOFENCE_IOCTL_SET_MODE 10
145
146/* check macros for GNSS commands */
147
148#define CXD56_GEOFENCE_IOCTL_INVAL 0
149#define CXD56_GEOFENCE_IOCTL_MAX 11
150
151/* @} geofence_ioctl */
152
161/* @{ */
162
165#define CXD56_GEOFENCE_TRANSITION_EXIT 0
166
169#define CXD56_GEOFENCE_TRANSITION_ENTER 1
170
173#define CXD56_GEOFENCE_TRANSITION_DWELL 2
174
175/* @} GEOFENCE transition type */
176
180/* @{ */
183#define CXD56_GEOFENCE_REGION_CAPACITY 20
184
185/* @} */
186
187/* @} geofence_defs */
188
189
203{
206 uint8_t id;
207
211
215
218 uint16_t radius;
219};
220
226{
227 uint16_t deadzone;
229};
230
236{
239 uint8_t id;
240
246 uint8_t status;
247};
248
254{
257 uint8_t update;
258
262};
263
264/* @} geofence_datatypes */
265/* @} */
266
267#undef EXTERN
268#ifdef __cplusplus
269}
270#endif
271
272#endif /* __ARCH_ARM_INCLUDE_CXD56XX_GEOFENCE_H */
long latitude
Definition: geofence.h:210
struct cxd56_geofence_trans_s status[CXD56_GEOFENCE_REGION_CAPACITY]
Definition: geofence.h:261
uint8_t id
Definition: geofence.h:206
uint8_t update
Definition: geofence.h:257
uint16_t radius
Definition: geofence.h:218
uint16_t dwell_detecttime
Definition: geofence.h:228
uint16_t deadzone
Definition: geofence.h:227
long longitude
Definition: geofence.h:214
uint8_t status
Definition: geofence.h:246
#define CXD56_GEOFENCE_REGION_CAPACITY
Definition: geofence.h:183
Geofence mode setting parameter.
Definition: geofence.h:226
Region center point and radius data.
Definition: geofence.h:203
Geofence output data structer.
Definition: geofence.h:254
The transition data.
Definition: geofence.h:236