// Autogenerated C header file for Compass
#ifndef _JACDAC_SPEC_COMPASS_H
#define _JACDAC_SPEC_COMPASS_H 1

#define JD_SERVICE_CLASS_COMPASS  0x15b7b9bf

/**
 * Read-only ° u16.16 (uint32_t). The heading with respect to the magnetic north.
 */
#define JD_COMPASS_REG_HEADING JD_REG_READING

/**
 * Read-write bool (uint8_t). Turn on or off the sensor. Turning on the sensor may start a calibration sequence.
 */
#define JD_COMPASS_REG_ENABLED JD_REG_INTENSITY

/**
 * Read-only ° u16.16 (uint32_t). Error on the heading reading
 */
#define JD_COMPASS_REG_HEADING_ERROR JD_REG_READING_ERROR

/**
 * No args. Starts a calibration sequence for the compass.
 */
#define JD_COMPASS_CMD_CALIBRATE JD_CMD_CALIBRATE

#endif
