rm3100 continued

This commit is contained in:
2020-12-21 19:52:00 +01:00
parent 1e33f810cf
commit 24cf9a661f
6 changed files with 70 additions and 9 deletions

View File

@ -1,6 +1,7 @@
#ifndef MISSION_DEVICES_DEVICEDEFINITIONS_MGMHANDLERRM3100DEFINITIONS_H_
#define MISSION_DEVICES_DEVICEDEFINITIONS_MGMHANDLERRM3100DEFINITIONS_H_
#include <fsfw/devicehandlers/DeviceHandlerIF.h>
#include <cstdint>
namespace RM3100 {
@ -47,7 +48,13 @@ static constexpr uint8_t REVID_REGISTER = 0x36;
// Range in Microtesla. 1 T equals 10000 Gauss (for comparison with LIS3 MGM)
static constexpr uint16_t RANGE = 800;
static constexpr DeviceCommandId_t CONFIGURE_CMM = 3;
static constexpr DeviceCommandId_t READ_CMM = 4;
//static constexpr DeviceCommandId_t CONFIGURE_CYC
static constexpr DeviceCommandId_t CONFIGURE_TMRC = 5;
static constexpr DeviceCommandId_t READ_TMRC = 6;
}