5 #ifndef ARUNA_SISTYPES_H 6 #define ARUNA_SISTYPES_H 46 return strlen(description) + 3;
49 virtual void encode(uint8_t *buffer) {
50 buffer[0] = (uint8_t) type;
51 buffer[1] = (uint8_t) level;
52 buffer[2] = strlen(description);
53 memcpy((
char *) &buffer[3], (
const char *) description, strlen(description));
56 virtual void decode(uint8_t *to_decode) {
57 type = (
type_t) to_decode[0];
59 memcpy(description, (
char *) &to_decode[3], to_decode[2]);
65 #endif //ARUNA_SISTYPES_H
level_t
SIS urgency level.
virtual uint8_t get_encode_size()
sis::level_t level[(uint8_t) sis::type_t::MAX]
virtual void encode(uint8_t *buffer)
status that is to be reported to the watcher
virtual void decode(uint8_t *to_decode)