13#ifndef ZEPHYR_INCLUDE_DRIVERS_SENSOR_MAX32664C_H_
14#define ZEPHYR_INCLUDE_DRIVERS_SENSOR_MAX32664C_H_
29#define MAX32664C_MOTION_TIME(ms) ((uint8_t)((ms * 25UL) / 1000))
35#define MAX32664C_MOTION_THRESHOLD(mg) ((uint8_t)((mg * 16UL) / 1000))
max32664c_algo_activity
Activity classes.
Definition max32664c.h:144
int max32664c_acc_fill_fifo(const struct device *dev, struct max32664c_acc_data_t *data, uint8_t length)
Fill the FIFO buffer with accelerometer data.
sensor_attribute_max32664c
Definition max32664c.h:54
sensor_channel_max32664c
Definition max32664c.h:38
int max32664c_bl_leave(const struct device *dev)
Leave the bootloader and enter the application mode.
max32664c_algo_mode
Algorithm modes.
Definition max32664c.h:120
max32664c_device_mode
Device operating modes.
Definition max32664c.h:80
int max32664c_bl_enter(const struct device *dev, const uint8_t *firmware, uint32_t size)
Enter the bootloader mode and run a firmware update.
max32664c_algo_gender
Gender settings.
Definition max32664c.h:135
@ MAX32664C_ALGO_ACTIVITY_OTHER
Other activity.
Definition max32664c.h:146
@ MAX32664C_ALGO_ACTIVITY_REST
Rest activity.
Definition max32664c.h:145
@ MAX32664C_ALGO_ACTIVITY_RUN
Run activity.
Definition max32664c.h:148
@ MAX32664C_ALGO_ACTIVITY_BIKE
Bike activity.
Definition max32664c.h:149
@ MAX32664C_ALGO_ACTIVITY_WALK
Walk activity.
Definition max32664c.h:147
@ SENSOR_ATTR_MAX32664C_AGE
Age of the subject being monitored.
Definition max32664c.h:58
@ SENSOR_ATTR_MAX32664C_GENDER
Gender of the subject being monitored.
Definition max32664c.h:56
@ SENSOR_ATTR_MAX32664C_OP_MODE
Get / Set the operation mode of a sensor.
Definition max32664c.h:66
@ SENSOR_ATTR_MAX32664C_WEIGHT
Weight of the subject being monitored.
Definition max32664c.h:60
@ SENSOR_ATTR_MAX32664C_HEIGHT
Height of the subject being monitored.
Definition max32664c.h:62
@ SENSOR_CHAN_MAX32664C_HEARTRATE
Heart rate value (bpm)
Definition max32664c.h:40
@ SENSOR_CHAN_MAX32664C_STEP_COUNTER
Step counter.
Definition max32664c.h:50
@ SENSOR_CHAN_MAX32664C_ACTIVITY
Activity class (index).
Definition max32664c.h:48
@ SENSOR_CHAN_MAX32664C_SKIN_CONTACT
Skin contact (1 -> Skin contact, 0, no contact)
Definition max32664c.h:46
@ SENSOR_CHAN_MAX32664C_RESPIRATION_RATE
Respiration rate (breaths per minute)
Definition max32664c.h:44
@ SENSOR_CHAN_MAX32664C_BLOOD_OXYGEN_SATURATION
SpO2 value (%)
Definition max32664c.h:42
@ MAX32664C_ALGO_MODE_CONT_HR_SHOT_SPO2
Continuous heart rate and shot SpO2.
Definition max32664c.h:122
@ MAX32664C_ALGO_MODE_CONT_HR_CONT_SPO2
Continuous heart rate and continuous SpO2.
Definition max32664c.h:121
@ MAX32664C_ALGO_MODE_CONT_HRM
Definition max32664c.h:123
@ MAX32664C_OP_MODE_ALGO_AGC_EXT
Algorithm AGC with extended reports.
Definition max32664c.h:107
@ MAX32664C_OP_MODE_RAW
Raw output mode.
Definition max32664c.h:82
@ MAX32664C_OP_MODE_SCD
SCD only mode.
Definition max32664c.h:108
@ MAX32664C_OP_MODE_ALGO_AGC
Algorithm AGC mode.
Definition max32664c.h:96
@ MAX32664C_OP_MODE_WAKE_ON_MOTION
Wake on motion mode.
Definition max32664c.h:109
@ MAX32664C_OP_MODE_ALGO_AEC_EXT
Algorithm with extended reports.
Definition max32664c.h:95
@ MAX32664C_OP_MODE_STOP_ALGO
Stop the current algorithm.
Definition max32664c.h:111
@ MAX32664C_OP_MODE_EXIT_WAKE_ON_MOTION
Exit wake on motion mode.
Definition max32664c.h:110
@ MAX32664C_OP_MODE_IDLE
Idle mode, no algorithm, sensors or wake on motion running.
Definition max32664c.h:81
@ MAX32664C_OP_MODE_ALGO_AEC
Algorithm AEC mode.
Definition max32664c.h:87
@ MAX32664_ALGO_GENDER_FEMALE
Female.
Definition max32664c.h:137
@ MAX32664_ALGO_GENDER_MALE
Male.
Definition max32664c.h:136
@ SENSOR_ATTR_PRIV_START
This and higher values are sensor specific.
Definition sensor.h:383
@ SENSOR_CHAN_PRIV_START
This and higher values are sensor specific.
Definition sensor.h:225
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
__INT16_TYPE__ int16_t
Definition stdint.h:73
Runtime device structure (in ROM) per driver instance.
Definition device.h:513
Data structure for external accelerometer data.
Definition max32664c.h:159
int16_t y
Y-axis acceleration.
Definition max32664c.h:161
int16_t x
X-axis acceleration.
Definition max32664c.h:160
int16_t z
Z-axis acceleration.
Definition max32664c.h:162