thing
This commit is contained in:
@@ -1,17 +1,25 @@
|
||||
//
|
||||
// Created by bruno on 13. 7. 2026.
|
||||
//
|
||||
|
||||
#ifndef AUDIOCODER_PACKET_H
|
||||
#define AUDIOCODER_PACKET_H
|
||||
#ifndef PACKET_H
|
||||
#define PACKET_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#include "decoder.h"
|
||||
#include "encoder.h"
|
||||
|
||||
uint8_t *build_stream(
|
||||
uint8_t *file,
|
||||
uint32_t size,
|
||||
uint32_t *outSize
|
||||
);
|
||||
#define PREAMBLE_SYMBOLS 128
|
||||
#define PREAMBLE_CHECK_SYMBOLS 16
|
||||
|
||||
#endif //AUDIOCODER_PACKET_H
|
||||
#define MAGIC0 0xA5
|
||||
#define MAGIC1 0x5A
|
||||
#define MAGIC2 0xC3
|
||||
#define MAGIC3 0x3C
|
||||
|
||||
#define MAX_PACKET 1024
|
||||
|
||||
uint16_t crc16(const uint8_t *data, uint32_t len);
|
||||
|
||||
void encoder_build_packet(Encoder *enc, uint8_t *data, uint8_t length);
|
||||
|
||||
bool decoder_parse_packet(Decoder *dec);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user