27 lines
723 B
C
27 lines
723 B
C
#ifndef OTA_SEAT_STATE_H
|
|
#define OTA_SEAT_STATE_H
|
|
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
|
|
#define OTA_SEAT_AXIS_COUNT (4u)
|
|
|
|
#define OTA_SEAT_AXIS0_FIXED_HALL_RANGE (480ul)
|
|
#define OTA_SEAT_AXIS1_FIXED_HALL_RANGE (373ul)
|
|
#define OTA_SEAT_AXIS2_FIXED_HALL_RANGE (917ul)
|
|
#define OTA_SEAT_AXIS3_FIXED_HALL_RANGE (647ul)
|
|
|
|
typedef struct
|
|
{
|
|
uint32_t sequence;
|
|
uint32_t validMask;
|
|
/* Read-only fixed Base values. OtaSeatState_Save() ignores caller changes. */
|
|
uint32_t range[OTA_SEAT_AXIS_COUNT];
|
|
uint32_t position[OTA_SEAT_AXIS_COUNT];
|
|
} ota_seat_state_data_t;
|
|
|
|
bool OtaSeatState_Load(ota_seat_state_data_t *state);
|
|
bool OtaSeatState_Save(const ota_seat_state_data_t *state);
|
|
|
|
#endif /* OTA_SEAT_STATE_H */
|