Prusa MINI Firmware overview
|
Go to the documentation of this file.
8 #define UARTRXBUFF_FLG_HALF 0x01
9 #define UARTRXBUFF_FLG_CPLT 0x02
10 #define UARTRXBUFF_FLG_FULL 0x04
11 #define UARTRXBUFF_FLG_OVER 0x08
49 #endif //_UARTRXBUFF_H
#define UARTRXBUFF_FLG_HALF
Definition: uartrxbuff.h:8
void uartrxbuff_init(uartrxbuff_t *prxbuff, UART_HandleTypeDef *phuart, DMA_HandleTypeDef *phdma, uint8_t size, uint8_t *pdata)
Definition: uartrxbuff.c:15
DMA_Stream_TypeDef * Instance
Definition: stm32f4xx_hal_dma.h:157
void uartrxbuff_open(uartrxbuff_t *prxbuff)
Definition: uartrxbuff.c:24
HAL_StatusTypeDef HAL_UART_Receive_DMA(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size)
#define _dbg0
Definition: dbg.h:31
uint8_t index
Definition: uartrxbuff.h:20
void uartrxbuff_rxcplt_cb(uartrxbuff_t *prxbuff)
Definition: uartrxbuff.c:71
void uartrxbuff_reset(uartrxbuff_t *prxbuff)
Definition: uartrxbuff.c:33
void uartrxbuff_rxhalf_cb(uartrxbuff_t *prxbuff)
Definition: uartrxbuff.c:61
#define UARTRXBUFF_FLG_CPLT
Definition: uartrxbuff.h:9
uint8_t * pdata
Definition: uartrxbuff.h:22
void uartrxbuff_rx_full(uartrxbuff_t *prxbuff)
Definition: uartrxbuff.c:5
UART_HandleTypeDef * phuart
Definition: uartrxbuff.h:17
int uartrxbuff_getchar(uartrxbuff_t *prxbuff)
Definition: uartrxbuff.c:38
void uartrxbuff_open(uartrxbuff_t *prxbuff)
Definition: uartrxbuff.c:24
void uartrxbuff_rxcplt_cb(uartrxbuff_t *prxbuff)
Definition: uartrxbuff.c:71
void uartrxbuff_close(uartrxbuff_t *prxbuff)
Definition: uartrxbuff.c:29
#define UARTRXBUFF_FLG_OVER
Definition: uartrxbuff.h:11
uint8_t flags
Definition: uartrxbuff.h:19
DMA handle Structure definition.
Definition: stm32f4xx_hal_dma.h:155
HAL_StatusTypeDef HAL_UART_AbortReceive(UART_HandleTypeDef *huart)
void uartrxbuff_init(uartrxbuff_t *prxbuff, UART_HandleTypeDef *phuart, DMA_HandleTypeDef *phdma, uint8_t size, uint8_t *pdata)
Definition: uartrxbuff.c:15
struct _uartrxbuff_t uartrxbuff_t
const uint8_t[]
Definition: 404_html.c:3
void uartrxbuff_rxhalf_cb(uartrxbuff_t *prxbuff)
Definition: uartrxbuff.c:61
void uartrxbuff_close(uartrxbuff_t *prxbuff)
Definition: uartrxbuff.c:29
int uartrxbuff_getchar(uartrxbuff_t *prxbuff)
Definition: uartrxbuff.c:38
This file contains all the functions prototypes for the HAL module driver.
void uartrxbuff_rx_overflow(uartrxbuff_t *prxbuff)
Definition: uartrxbuff.c:10
void uartrxbuff_reset(uartrxbuff_t *prxbuff)
Definition: uartrxbuff.c:33
#define UARTRXBUFF_FLG_FULL
Definition: uartrxbuff.h:10
UART handle Structure definition.
Definition: stm32f4xx_hal_uart.h:158
uint8_t size
Definition: uartrxbuff.h:21
DMA_HandleTypeDef * phdma
Definition: uartrxbuff.h:18
Definition: uartrxbuff.h:16
static png_bytep size_t size
Definition: pngwrite.c:2170