| 1234567891011121314151617181920212223242526 |
- #pragma once
- #include <stdint.h>
- #include <stdlib.h>
- #define MAX_DATA_SIZE 32
- typedef struct UHFData {
- uint8_t data[MAX_DATA_SIZE];
- size_t length;
- bool data_full;
- struct UHFData* next;
- } UHFData;
- typedef struct UHFResponseData {
- UHFData* data;
- size_t size;
- } UHFResponseData;
- UHFData* uhf_data_alloc();
- int uhf_data_append(UHFData* uhf_data, uint8_t data);
- void uhf_data_free(UHFData* uhf_data);
- UHFResponseData* uhf_response_data_alloc();
- UHFData* add_uhf_data_to_uhf_response_data(UHFResponseData* uhf_response_data);
- void uhf_response_data_free(UHFResponseData* uhf_response_data);
|