ICM42670 Portable Driver
Public API reference for the ICM-42670-P IMU driver
Loading...
Searching...
No Matches
ICM42670_internal.h
Go to the documentation of this file.
1
6#ifndef ICM42670_INTERNAL_H
7#define ICM42670_INTERNAL_H
8
9#ifdef __cplusplus
10extern "C" {
11#endif
12
13#include "ICM42670_driver.h"
14#include <stdint.h>
15
17ICM42670_ValidateConfig(const ICM42670_Config *config);
18
20ICM42670_ValidateMregConfig(const ICM42670_Config *config);
21
22ICM42670_Status_t ICM42670_ReadReg(const ICM42670_Config *config,
23 uint8_t reg_addr, uint8_t *data,
24 uint16_t len);
25
26ICM42670_Status_t ICM42670_WriteReg(const ICM42670_Config *config,
27 uint8_t reg_addr, const uint8_t *data,
28 uint16_t len);
29
30ICM42670_Status_t ICM42670_WriteReg8(const ICM42670_Config *config,
31 uint8_t reg_addr, uint8_t value);
32
33ICM42670_Status_t ICM42670_UpdateRegBits(const ICM42670_Config *config,
34 uint8_t reg_addr, uint8_t mask,
35 uint8_t field_value);
36
38ICM42670_WaitForMclk(const ICM42670_Config *config);
39
40ICM42670_Status_t ICM42670_ReadMreg1(const ICM42670_Config *config,
41 uint8_t reg_addr, uint8_t *value);
42
43ICM42670_Status_t ICM42670_WriteMreg1(const ICM42670_Config *config,
44 uint8_t reg_addr, uint8_t value);
45
46ICM42670_Status_t ICM42670_UpdateMreg1Bits(const ICM42670_Config *config,
47 uint8_t reg_addr, uint8_t mask,
48 uint8_t field_value);
49
50int16_t ICM42670_CombineBytes(uint8_t msb, uint8_t lsb);
51
52#ifdef __cplusplus
53}
54#endif
55
56#endif /* ICM42670_INTERNAL_H */
Core ICM-42670-P configuration and sensor read API.
ICM42670_Status_t
Return codes used by the ICM-42670-P driver.
Definition ICM42670_driver.h:23
Platform-independent driver configuration.
Definition ICM42670_driver.h:172