2020-12-04 14:14:08 +01:00
|
|
|
#ifndef FSFWCONFIG_DEVICES_ADDRESSES_H_
|
|
|
|
#define FSFWCONFIG_DEVICES_ADDRESSES_H_
|
2021-03-04 18:29:28 +01:00
|
|
|
|
2020-09-16 16:22:36 +02:00
|
|
|
#include <fsfw/devicehandlers/CookieIF.h>
|
2020-11-20 18:10:39 +01:00
|
|
|
#include <fsfwconfig/objects/systemObjectList.h>
|
2021-03-04 18:29:28 +01:00
|
|
|
#include <cstdint>
|
2020-09-16 16:22:36 +02:00
|
|
|
|
|
|
|
namespace addresses {
|
|
|
|
/* Logical addresses have uint32_t datatype */
|
|
|
|
enum logicalAddresses: address_t {
|
|
|
|
PCDU,
|
|
|
|
|
2021-03-04 18:29:28 +01:00
|
|
|
MGM_0_LIS3 = objects::MGM_0_LIS3_HANDLER,
|
|
|
|
MGM_1_RM3100 = objects::MGM_1_RM3100_HANDLER,
|
|
|
|
MGM_2_LIS3 = objects::MGM_2_LIS3_HANDLER,
|
|
|
|
MGM_3_RM3100 = objects::MGM_3_RM3100_HANDLER,
|
|
|
|
|
|
|
|
GYRO_0_ADIS = objects::GYRO_0_ADIS_HANDLER,
|
|
|
|
GYRO_1_L3G = objects::GYRO_1_L3G_HANDLER,
|
|
|
|
GYRO_2_L3G = objects::GYRO_2_L3G_HANDLER,
|
|
|
|
|
2021-05-02 13:48:39 +02:00
|
|
|
RAD_SENSOR = objects::RAD_SENSOR,
|
|
|
|
|
2020-09-16 16:22:36 +02:00
|
|
|
/* Dummy and Test Addresses */
|
|
|
|
DUMMY_ECHO = 129,
|
|
|
|
DUMMY_GPS0 = 130,
|
|
|
|
DUMMY_GPS1 = 131,
|
|
|
|
};
|
2020-12-04 14:14:08 +01:00
|
|
|
|
2021-01-12 10:39:24 +01:00
|
|
|
enum i2cAddresses: address_t {
|
2021-03-26 12:08:37 +01:00
|
|
|
IMTQ = 16,
|
2021-01-12 10:39:24 +01:00
|
|
|
TMP1075_TCS_1 = 72,
|
|
|
|
TMP1075_TCS_2 = 73,
|
|
|
|
};
|
|
|
|
|
2021-03-13 14:42:30 +01:00
|
|
|
enum spiAddresses: address_t {
|
|
|
|
RTD_IC3,
|
|
|
|
RTD_IC4,
|
|
|
|
RTD_IC5,
|
|
|
|
RTD_IC6,
|
|
|
|
RTD_IC7,
|
|
|
|
RTD_IC8,
|
|
|
|
RTD_IC9,
|
|
|
|
RTD_IC10,
|
|
|
|
RTD_IC11,
|
|
|
|
RTD_IC12,
|
|
|
|
RTD_IC13,
|
|
|
|
RTD_IC14,
|
|
|
|
RTD_IC15,
|
|
|
|
RTD_IC16,
|
|
|
|
RTD_IC17,
|
|
|
|
RTD_IC18
|
|
|
|
};
|
|
|
|
|
2020-12-04 14:14:08 +01:00
|
|
|
/* Addresses of devices supporting the CSP protocol */
|
|
|
|
enum cspAddresses: uint8_t {
|
|
|
|
P60DOCK = 4,
|
2020-12-21 10:26:28 +01:00
|
|
|
ACU = 2,
|
2020-12-20 13:31:44 +01:00
|
|
|
PDU1 = 3,
|
2020-12-04 14:14:08 +01:00
|
|
|
/* PDU2 occupies X4 slot of P60Dock */
|
|
|
|
PDU2 = 6
|
|
|
|
};
|
2020-09-16 16:22:36 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2020-12-04 14:14:08 +01:00
|
|
|
#endif /* FSFWCONFIG_DEVICES_ADDRESSES_H_ */
|