protocol.h 568 B

12345678910111213141516171819202122
  1. #pragma once
  2. #include <furi.h>
  3. /// Number of bytes that can be stored in the queue at one time
  4. #define PWNAGOTCHI_PROTOCOL_QUEUE_SIZE 5000
  5. /// Max bytes of argument data
  6. #define PWNAGOTCHI_PROTOCOL_ARGS_MAX 100
  7. /// Start byte at beginning of transmission
  8. #define PWNAGOTCHI_PROTOCOL_START 0x02
  9. /// End byte at the end of transmission
  10. #define PWNAGOTCHI_PROTOCOL_END 0x03
  11. typedef struct {
  12. /// Parameter to operate on
  13. uint8_t parameterCode;
  14. /// Holds arguments sent folowing parameter
  15. uint8_t arguments[PWNAGOTCHI_PROTOCOL_ARGS_MAX];
  16. } PwnCommand;