|
Zephyr API Documentation 4.3.99
A Scalable Open Source RTOS
|
Maxim Integrated MAX32664C biometric sensor hub. More...
Files | |
| file | max32664c.h |
| Header file for extended sensor API of MAX32664C sensor. | |
Data Structures | |
| struct | max32664c_acc_data_t |
| Data structure for external accelerometer data. More... | |
Macros | |
| #define | MAX32664C_MOTION_TIME(ms) |
| Converts a motion time in milli-seconds to the corresponding value for the MAX32664C sensor. | |
| #define | MAX32664C_MOTION_THRESHOLD(mg) |
| Converts a motion threshold in milli-g (Acceleration) to the corresponding value for the MAX32664C sensor. | |
Functions | |
| int | max32664c_bl_enter (const struct device *dev, const uint8_t *firmware, uint32_t size) |
| Enter the bootloader mode and run a firmware update. | |
| int | max32664c_bl_leave (const struct device *dev) |
| Leave the bootloader and enter the application mode. | |
| 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. | |
Maxim Integrated MAX32664C biometric sensor hub.
| #define MAX32664C_MOTION_THRESHOLD | ( | mg | ) |
#include <zephyr/drivers/sensor/max32664c.h>
Converts a motion threshold in milli-g (Acceleration) to the corresponding value for the MAX32664C sensor.
This macro should be used when configuring the motion based wake up settings for the sensor.
| #define MAX32664C_MOTION_TIME | ( | ms | ) |
#include <zephyr/drivers/sensor/max32664c.h>
Converts a motion time in milli-seconds to the corresponding value for the MAX32664C sensor.
This macro should be used when configuring the motion based wake up settings for the sensor.
#include <zephyr/drivers/sensor/max32664c.h>
Activity classes.
This enum defines the supported activity classes for the MAX32664C sensor.
#include <zephyr/drivers/sensor/max32664c.h>
Gender settings.
This enum defines the supported gender settings for the MAX32664C sensor.
| Enumerator | |
|---|---|
| MAX32664_ALGO_GENDER_MALE | Male. |
| MAX32664_ALGO_GENDER_FEMALE | Female. |
| enum max32664c_algo_mode |
#include <zephyr/drivers/sensor/max32664c.h>
Algorithm modes.
This enum defines the various algorithm modes supported by the MAX32664C sensor. These modes determine the type of data processing performed by the sensor, such as continuous heart rate monitoring, SpO2 calculation, or activity tracking.
| Enumerator | |
|---|---|
| MAX32664C_ALGO_MODE_CONT_HR_CONT_SPO2 | Continuous heart rate and continuous SpO2. |
| MAX32664C_ALGO_MODE_CONT_HR_SHOT_SPO2 | Continuous heart rate and shot SpO2. |
| MAX32664C_ALGO_MODE_CONT_HRM | |
#include <zephyr/drivers/sensor/max32664c.h>
Device operating modes.
This enum defines the various operating modes that the MAX32664C sensor can be configured to. These modes control the sensor's behavior and functionality, such as calibration, idle state, raw data output, and algorithm-based operations.
#include <zephyr/drivers/sensor/max32664c.h>
#include <zephyr/drivers/sensor/max32664c.h>
| int max32664c_acc_fill_fifo | ( | const struct device * | dev, |
| struct max32664c_acc_data_t * | data, | ||
| uint8_t | length ) |
#include <zephyr/drivers/sensor/max32664c.h>
Fill the FIFO buffer with accelerometer data.
NOTE: This function supports up to 16 samples and it must be called periodically to provide accelerometer data to the MAX32664C!
| dev | Pointer to device |
| data | Pointer to the accelerometer data structure |
| length | Number of samples to fill |
CONFIG_MAX32664C_USE_EXTERNAL_ACC. #include <zephyr/drivers/sensor/max32664c.h>
Enter the bootloader mode and run a firmware update.
| dev | Pointer to device |
| firmware | Pointer to firmware data |
| size | Size of the firmware |
CONFIG_MAX32664C_USE_FIRMWARE_LOADER. | int max32664c_bl_leave | ( | const struct device * | dev | ) |
#include <zephyr/drivers/sensor/max32664c.h>
Leave the bootloader and enter the application mode.
| dev | Pointer to device |
CONFIG_MAX32664C_USE_FIRMWARE_LOADER.