eive-obsw/linux/fsfwconfig/devices/addresses.h

87 lines
1.8 KiB
C
Raw Normal View History

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>
2022-01-17 15:58:27 +01:00
2021-03-04 18:29:28 +01:00
#include <cstdint>
2020-09-16 16:22:36 +02:00
2022-01-17 15:58:27 +01:00
#include "objects/systemObjectList.h"
2020-09-16 16:22:36 +02:00
2022-01-17 15:58:27 +01:00
namespace addresses {
/* Logical addresses have uint32_t datatype */
enum logicalAddresses : address_t {
PCDU,
2021-03-04 18:29:28 +01:00
2022-01-17 15:58:27 +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,
2021-03-04 18:29:28 +01:00
2022-01-17 15:58:27 +01:00
GYRO_0_ADIS = objects::GYRO_0_ADIS_HANDLER,
GYRO_1_L3G = objects::GYRO_1_L3G_HANDLER,
GYRO_2_ADIS = objects::GYRO_2_ADIS_HANDLER,
GYRO_3_L3G = objects::GYRO_3_L3G_HANDLER,
2021-05-02 13:48:39 +02:00
2022-01-17 15:58:27 +01:00
RAD_SENSOR = objects::RAD_SENSOR,
2021-05-03 11:59:33 +02:00
2022-01-17 15:58:27 +01:00
SUS_1 = objects::SUS_1,
SUS_2 = objects::SUS_2,
SUS_3 = objects::SUS_3,
SUS_4 = objects::SUS_4,
SUS_5 = objects::SUS_5,
SUS_6 = objects::SUS_6,
SUS_7 = objects::SUS_7,
SUS_8 = objects::SUS_8,
SUS_9 = objects::SUS_9,
SUS_10 = objects::SUS_10,
SUS_11 = objects::SUS_11,
SUS_12 = objects::SUS_12,
SUS_13 = objects::SUS_13,
2020-12-04 14:14:08 +01:00
2022-01-17 15:58:27 +01:00
/* Dummy and Test Addresses */
DUMMY_ECHO = 129,
DUMMY_GPS0 = 130,
DUMMY_GPS1 = 131,
};
2021-01-12 10:39:24 +01:00
2022-01-17 15:58:27 +01:00
enum i2cAddresses : address_t {
IMTQ = 16,
TMP1075_TCS_1 = 72,
TMP1075_TCS_2 = 73,
};
2021-03-13 14:42:30 +01:00
2022-01-17 15:58:27 +01:00
enum spiAddresses : address_t {
RTD_IC_3,
RTD_IC_4,
RTD_IC_5,
RTD_IC_6,
RTD_IC_7,
RTD_IC_8,
RTD_IC_9,
RTD_IC_10,
RTD_IC_11,
RTD_IC_12,
RTD_IC_13,
RTD_IC_14,
RTD_IC_15,
RTD_IC_16,
RTD_IC_17,
RTD_IC_18,
RW1,
RW2,
RW3,
RW4
};
2020-09-16 16:22:36 +02:00
2022-01-17 15:58:27 +01:00
/* Addresses of devices supporting the CSP protocol */
enum cspAddresses : uint8_t {
P60DOCK = 4,
ACU = 2,
PDU1 = 3,
/* PDU2 occupies X4 slot of P60Dock */
PDU2 = 6
};
} // namespace addresses
2020-09-16 16:22:36 +02:00
2020-12-04 14:14:08 +01:00
#endif /* FSFWCONFIG_DEVICES_ADDRESSES_H_ */