2020-06-03 18:40:05 -04:00
|
|
|
// SPDX-FileCopyrightText: Sony Semiconductor Solutions Corporation
|
|
|
|
//
|
|
|
|
// SPDX-License-Identifier: MIT
|
2020-06-16 14:39:56 -04:00
|
|
|
|
|
|
|
#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_GNSS_POSITIONFIX_H
|
|
|
|
#define MICROPY_INCLUDED_SHARED_BINDINGS_GNSS_POSITIONFIX_H
|
|
|
|
|
|
|
|
#include "py/obj.h"
|
|
|
|
|
|
|
|
typedef enum {
|
|
|
|
POSITIONFIX_INVALID,
|
|
|
|
POSITIONFIX_2D,
|
|
|
|
POSITIONFIX_3D,
|
|
|
|
} gnss_positionfix_t;
|
|
|
|
|
2020-08-03 19:40:45 -04:00
|
|
|
extern const mp_obj_type_t gnss_positionfix_type;
|
2020-06-16 14:39:56 -04:00
|
|
|
|
|
|
|
gnss_positionfix_t gnss_positionfix_obj_to_type(mp_obj_t obj);
|
|
|
|
mp_obj_t gnss_positionfix_type_to_obj(gnss_positionfix_t mode);
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
mp_obj_base_t base;
|
|
|
|
} gnss_positionfix_obj_t;
|
|
|
|
extern const gnss_positionfix_obj_t gnss_positionfix_invalid_obj;
|
|
|
|
extern const gnss_positionfix_obj_t gnss_positionfix_fix2d_obj;
|
|
|
|
extern const gnss_positionfix_obj_t gnss_positionfix_fix3d_obj;
|
|
|
|
|
|
|
|
#endif // MICROPY_INCLUDED_SHARED_BINDINGS_GNSS_POSITIONFIX_H
|