use on/off semantics and rename handler
This commit is contained in:
@ -15,21 +15,20 @@
|
||||
|
||||
namespace supv {
|
||||
|
||||
typedef struct
|
||||
{
|
||||
// The most significant bit of msec value is set to 0x80 to indicate that full
|
||||
// time and data information is transmitted, when the time has been synced with
|
||||
// the reference. If the time has not been synced with reference, then the most
|
||||
// significant bit is set to 0x00. Only the most significant bit is used for
|
||||
// this purpose (bit 15 of the field tm_msec)
|
||||
uint16_t tm_msec; // miliseconds 0-999;
|
||||
uint8_t tm_sec; // seconds after the minute, 0 to 60
|
||||
typedef struct {
|
||||
// The most significant bit of msec value is set to 0x80 to indicate that full
|
||||
// time and data information is transmitted, when the time has been synced with
|
||||
// the reference. If the time has not been synced with reference, then the most
|
||||
// significant bit is set to 0x00. Only the most significant bit is used for
|
||||
// this purpose (bit 15 of the field tm_msec)
|
||||
uint16_t tm_msec; // miliseconds 0-999;
|
||||
uint8_t tm_sec; // seconds after the minute, 0 to 60
|
||||
// (0 - 60 allows for the occasional leap second)
|
||||
uint8_t tm_min; // minutes after the hour, 0 to 59
|
||||
uint8_t tm_hour; // hours since midnight, 0 to 23
|
||||
uint8_t tm_mday; // day of the month, 1 to 31
|
||||
uint8_t tm_mon; // months 1 to 12
|
||||
uint8_t tm_year; // years since 1900
|
||||
uint8_t tm_min; // minutes after the hour, 0 to 59
|
||||
uint8_t tm_hour; // hours since midnight, 0 to 23
|
||||
uint8_t tm_mday; // day of the month, 1 to 31
|
||||
uint8_t tm_mon; // months 1 to 12
|
||||
uint8_t tm_year; // years since 1900
|
||||
} tas_time_t;
|
||||
|
||||
/** Command IDs */
|
||||
@ -130,23 +129,23 @@ static constexpr uint16_t APID_MEM_MAN = 0x05;
|
||||
static constexpr uint16_t APID_DATA_LOGGER = 0x06;
|
||||
static constexpr uint16_t APID_WDOG_MAN = 0x07;
|
||||
|
||||
enum class HkServiceIds: uint8_t {
|
||||
enum class HkServiceIds : uint8_t {
|
||||
ENABLE = 0x01,
|
||||
SET_PERIOD = 0x02,
|
||||
GET_REPORT = 0x03,
|
||||
GET_HARDFAULTS_REPORT = 0x04,
|
||||
};
|
||||
|
||||
enum class TmtcServiceIds: uint8_t {
|
||||
TIME_REF = 0x03,
|
||||
GET_SUPV_VERSION = 0x05,
|
||||
RUN_AUTO_EM_TEST = 0x08,
|
||||
SET_GPIO = 0x0E,
|
||||
READ_GPIO = 0x0F,
|
||||
GET_MPSOC_POWER_INFO = 0x10
|
||||
enum class TmtcServiceIds : uint8_t {
|
||||
TIME_REF = 0x03,
|
||||
GET_SUPV_VERSION = 0x05,
|
||||
RUN_AUTO_EM_TEST = 0x08,
|
||||
SET_GPIO = 0x0E,
|
||||
READ_GPIO = 0x0F,
|
||||
GET_MPSOC_POWER_INFO = 0x10
|
||||
};
|
||||
|
||||
enum class BootManServiceIds: uint8_t {
|
||||
enum class BootManServiceIds : uint8_t {
|
||||
START_MPSOC = 0x01,
|
||||
SHUTDOWN_MPSOC = 0x02,
|
||||
SELECT_IMAGE = 0x03,
|
||||
@ -160,7 +159,7 @@ enum class BootManServiceIds: uint8_t {
|
||||
FACTORY_FLASH = 0x0C
|
||||
};
|
||||
|
||||
enum class LatchupMonServiceIds: uint8_t {
|
||||
enum class LatchupMonServiceIds : uint8_t {
|
||||
ENABLE = 0x01,
|
||||
DISABLE = 0x02,
|
||||
SET_ALERT_LIMIT = 0x04,
|
||||
@ -169,15 +168,13 @@ enum class LatchupMonServiceIds: uint8_t {
|
||||
|
||||
// Right now, none of the commands seem to be implemented, but still
|
||||
// keep the enum here in case some are added
|
||||
enum class AdcMonServiceIds: uint8_t {};
|
||||
enum class AdcMonServiceIds : uint8_t {};
|
||||
|
||||
enum class DataLoggerServiceIds: uint8_t {
|
||||
FACTORY_RESET = 0x07
|
||||
};
|
||||
enum class DataLoggerServiceIds : uint8_t { FACTORY_RESET = 0x07 };
|
||||
|
||||
// Right now, none of the commands seem to be implemented, but still
|
||||
// keep the enum here in case some are added
|
||||
enum class WdogManServiceIds: uint8_t {};
|
||||
enum class WdogManServiceIds : uint8_t {};
|
||||
|
||||
static const uint16_t APID_START_MPSOC = 0xA1;
|
||||
static const uint16_t APID_SHUTWOWN_MPSOC = 0xA2;
|
||||
@ -378,9 +375,7 @@ class SupvTcBase : public ploc::SpTcBase {
|
||||
SupvTcBase(SupvTcParams params) : ploc::SpTcBase(params) {}
|
||||
|
||||
SupvTcBase(SupvTcParams params, uint16_t apid, uint16_t seqCount)
|
||||
: ploc::SpTcBase(params, apid, seqCount) {
|
||||
|
||||
}
|
||||
: ploc::SpTcBase(params, apid, seqCount) {}
|
||||
|
||||
private:
|
||||
};
|
||||
|
Reference in New Issue
Block a user