Adding registers as consts in enum

This commit is contained in:
Pcornat 2025-02-12 21:13:37 +01:00
parent 1f4170c292
commit a56804ec46
Signed by: Pcornat
GPG key ID: E0326CC678A00BDD

23
Inc/sensor_registers.h Normal file
View file

@ -0,0 +1,23 @@
//
// Created by fdenef on 12/02/2025.
//
#ifndef SENSOR_REGISTERS_H
#define SENSOR_REGISTERS_H
typedef enum {
sensor_addr = 0x1A << 1,
config_reg = 0x01,
status_reg = 0x02,
mbit_trim_reg = 0x03,
bias_trim_top_reg = 0x04,
bias_trim_bot_reg = 0x05,
clk_trim_reg = 0x06,
bpa_trim_top_reg = 0x07,
bpa_trim_bot_reg = 0x08,
pu_reg = 0x09,
data_top_reg = 0x0A,
data_bot_reg = 0x0B,
} SensorRegisters;
#endif //SENSOR_REGISTERS_H