14 lines
550 B
C
14 lines
550 B
C
#ifndef __PROTOCOL_H
|
|
#define __PROTOCOL_H
|
|
|
|
#include "main.h"
|
|
|
|
void Decode_uart(uint16_t *Command, LDx_SetupTypeDef *LD1_curr_setup, LDx_SetupTypeDef *LD2_curr_setup, Work_SetupTypeDef *Curr_setup);
|
|
void Decode_task(uint16_t *Command, LDx_SetupTypeDef *LD1_curr_setup, LDx_SetupTypeDef *LD2_curr_setup, Work_SetupTypeDef *Curr_setup);
|
|
uint8_t CheckChecksum(uint16_t *pbuff);
|
|
uint16_t CalculateChecksum(uint16_t *pbuff, uint16_t len);
|
|
void USART_TX(uint8_t* dt, uint16_t sz);
|
|
void USART_TX_DMA(uint16_t sz);
|
|
|
|
#endif /* __PROTOCOL_H */
|