2021-05-18 08:37:47 +00:00
|
|
|
#pragma once
|
2022-01-05 16:10:18 +00:00
|
|
|
#include "protocol_generic.h"
|
2021-05-18 08:37:47 +00:00
|
|
|
|
|
|
|
class ProtocolHID10301 : public ProtocolGeneric {
|
|
|
|
public:
|
|
|
|
uint8_t get_encoded_data_size() final;
|
|
|
|
uint8_t get_decoded_data_size() final;
|
|
|
|
|
|
|
|
void encode(
|
|
|
|
const uint8_t* decoded_data,
|
|
|
|
const uint8_t decoded_data_size,
|
|
|
|
uint8_t* encoded_data,
|
|
|
|
const uint8_t encoded_data_size) final;
|
|
|
|
|
|
|
|
void decode(
|
|
|
|
const uint8_t* encoded_data,
|
|
|
|
const uint8_t encoded_data_size,
|
|
|
|
uint8_t* decoded_data,
|
|
|
|
const uint8_t decoded_data_size) final;
|
|
|
|
|
|
|
|
bool can_be_decoded(const uint8_t* encoded_data, const uint8_t encoded_data_size) final;
|
2022-05-06 13:37:10 +00:00
|
|
|
};
|