// Autogenerated C header file for Satellite Navigation System
#ifndef _JACDAC_SPEC_SAT_NAV_H
#define _JACDAC_SPEC_SAT_NAV_H 1

#define JD_SERVICE_CLASS_SAT_NAV  0x19dd6136

/**
 * Reported coordinates, geometric altitude and time of position. Altitude accuracy is 0 if not available.
 */
#define JD_SAT_NAV_REG_POSITION JD_REG_READING
typedef struct jd_sat_nav_position {
    uint64_t timestamp; // ms
    int32_t latitude;  // lat i9.23
    int32_t longitude;  // lon i9.23
    uint32_t accuracy;  // m u16.16
    int32_t altitude;  // m i26.6
    uint32_t altitudeAccuracy;  // m u16.16
} jd_sat_nav_position_t;


/**
 * Read-write bool (uint8_t). Enables or disables the GPS module
 */
#define JD_SAT_NAV_REG_ENABLED JD_REG_INTENSITY

/**
 * The module is disabled or lost connection with satellites.
 */
#define JD_SAT_NAV_EV_INACTIVE JD_EV_INACTIVE

#endif
