14 NciMessage(uint8_t message_type,
const std::vector<uint8_t> &payload);
16 NciMessage(uint8_t message_type, uint8_t gid, uint8_t oid,
const std::vector<uint8_t> &payload);
17 NciMessage(
const std::vector<uint8_t> &raw_packet);
19 std::vector<uint8_t>
encode();
33 bool gid_is(uint8_t gid)
const;
34 bool oid_is(uint8_t oid)
const;
37 void set_header(uint8_t message_type, uint8_t gid, uint8_t oid);
38 void set_message(uint8_t message_type,
const std::vector<uint8_t> &payload);
39 void set_message(uint8_t message_type, uint8_t gid, uint8_t oid,
const std::vector<uint8_t> &payload);
43 void set_payload(
const std::vector<uint8_t> &payload);
uint8_t get_message_type() const
bool message_type_is(uint8_t message_type) const
uint8_t get_message_byte(uint8_t offset) const
void set_oid(uint8_t oid)
std::vector< uint8_t > & get_message()
void set_header(uint8_t message_type, uint8_t gid, uint8_t oid)
bool gid_is(uint8_t gid) const
void set_message_type(uint8_t message_type)
std::vector< uint8_t > nci_message_
bool simple_status_response_is(uint8_t response) const
void set_payload(const std::vector< uint8_t > &payload)
void set_message(uint8_t message_type, const std::vector< uint8_t > &payload)
bool oid_is(uint8_t oid) const
uint8_t get_payload_size(bool recompute=false)
void set_gid(uint8_t gid)
bool message_length_is(uint8_t message_length, bool recompute=false)
Implementation of SPI Controller mode.
std::vector< uint8_t > encode()
uint8_t get_simple_status_response() const