mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 01:18:36 +02:00
API: C: Add TC10
This commit is contained in:
@@ -4,24 +4,13 @@
|
||||
#ifdef __cplusplus
|
||||
|
||||
#include "icsneo/communication/message/message.h"
|
||||
#include "icsneo/communication/tc10.h"
|
||||
|
||||
#include <memory>
|
||||
|
||||
namespace icsneo
|
||||
{
|
||||
|
||||
enum class TC10WakeStatus : uint8_t {
|
||||
NoWakeReceived,
|
||||
WakeReceived,
|
||||
};
|
||||
|
||||
enum class TC10SleepStatus : uint8_t {
|
||||
NoSleepReceived,
|
||||
SleepReceived,
|
||||
SleepFailed,
|
||||
SleepAborted,
|
||||
};
|
||||
|
||||
class TC10StatusMessage : public Message {
|
||||
public:
|
||||
static std::shared_ptr<TC10StatusMessage> DecodeToMessage(const std::vector<uint8_t>& bytestream);
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
#ifndef __ICSNEO_TC10_H_
|
||||
#define __ICSNEO_TC10_H_
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
namespace icsneo {
|
||||
|
||||
enum class TC10WakeStatus : uint8_t {
|
||||
NoWakeReceived,
|
||||
WakeReceived,
|
||||
};
|
||||
|
||||
enum class TC10SleepStatus : uint8_t {
|
||||
NoSleepReceived,
|
||||
SleepReceived,
|
||||
SleepFailed,
|
||||
SleepAborted,
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
#ifdef __ICSNEOC_H_
|
||||
|
||||
typedef enum _neotc10wakestatus_t {
|
||||
ICSNEO_TC10_NO_WAKE_RECEIVED = 0,
|
||||
ICSNEO_TC10_WAKE_RECEIVED = 1,
|
||||
} neotc10wakestatus_t;
|
||||
|
||||
typedef enum _neotc10sleepstatus_t {
|
||||
ICSNEO_TC10_NO_SLEEP_RECEIVED = 0,
|
||||
ICSNEO_TC10_SLEEP_RECEIVED = 1,
|
||||
ICSNEO_TC10_SLEEP_FAILED = 1,
|
||||
ICSNEO_TC10_SLEEP_ABORTED = 1,
|
||||
} neotc10sleepstatus_t;
|
||||
|
||||
typedef struct _neotc10status_t {
|
||||
neotc10wakestatus_t wakeStatus;
|
||||
neotc10sleepstatus_t sleepStatus;
|
||||
} neotc10status_t;
|
||||
|
||||
#endif
|
||||
|
||||
#endif // __ICSNEO_TC10_H_
|
||||
Reference in New Issue
Block a user