uhf_data.h 557 B

1234567891011121314151617181920212223
  1. #pragma once
  2. #include <stdint.h>
  3. #include <stdlib.h>
  4. typedef struct UHFData {
  5. uint8_t data[32];
  6. size_t length;
  7. struct UHFData* next;
  8. } UHFData;
  9. typedef struct UHFResponseData {
  10. UHFData* data;
  11. size_t size;
  12. } UHFResponseData;
  13. UHFData* uhf_data_alloc();
  14. int uhf_data_append(UHFData* uhf_data, uint8_t data);
  15. void uhf_data_free(UHFData* uhf_data);
  16. UHFResponseData* uhf_response_data_alloc();
  17. UHFData* add_uhf_data_to_uhf_response_data(UHFResponseData* uhf_response_data);
  18. void uhf_response_data_free(UHFResponseData* uhf_response_data);