You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
390 B
C
24 lines
390 B
C
#ifndef _P_SERIAL_MGR_H_
|
|
#define _P_SERIAL_MGR_H_
|
|
|
|
#include "stm32l4xx_hal.h"
|
|
#include <stdbool.h>
|
|
|
|
typedef struct serial_pkt_t
|
|
{
|
|
uint8_t frame_data[256];
|
|
uint8_t src_addr;
|
|
uint8_t dest_addr;
|
|
uint8_t checksum;
|
|
uint8_t len;
|
|
bool b_ready;
|
|
} serial_pkt_t;
|
|
|
|
void p_serial_mgr_init(UART_HandleTypeDef *huart);
|
|
|
|
serial_pkt_t *p_serial_mgr_service(void);
|
|
|
|
void p_serial_mgr_start();
|
|
|
|
#endif
|