Prusa MINI Firmware overview
|
#include "uartrxbuff.h"
#include "dbg.h"
◆ uartrxbuff_rx_full()
7 _dbg0(
"uartrxbuff_rx_full");
◆ uartrxbuff_rx_overflow()
12 _dbg0(
"uartrxbuff_rx_overflow");
◆ uartrxbuff_init()
17 prxbuff->
phdma = phdma;
21 prxbuff->
pdata = pdata;
◆ uartrxbuff_open()
◆ uartrxbuff_close()
◆ uartrxbuff_reset()
◆ uartrxbuff_getchar()
42 if (prxbuff->
index < (prxbuff->
size / 2)) {
45 if (prxbuff->
index == (prxbuff->
size / 2))
◆ uartrxbuff_rxhalf_cb()
◆ uartrxbuff_rxcplt_cb()
#define UARTRXBUFF_FLG_HALF
Definition: uartrxbuff.h:8
DMA_Stream_TypeDef * Instance
Definition: stm32f4xx_hal_dma.h:157
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_reset(uartrxbuff_t *prxbuff)
Definition: uartrxbuff.c:33
#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
#define UARTRXBUFF_FLG_OVER
Definition: uartrxbuff.h:11
uint8_t flags
Definition: uartrxbuff.h:19
HAL_StatusTypeDef HAL_UART_AbortReceive(UART_HandleTypeDef *huart)
const uint8_t[]
Definition: 404_html.c:3
void uartrxbuff_rx_overflow(uartrxbuff_t *prxbuff)
Definition: uartrxbuff.c:10
#define UARTRXBUFF_FLG_FULL
Definition: uartrxbuff.h:10
uint8_t size
Definition: uartrxbuff.h:21
DMA_HandleTypeDef * phdma
Definition: uartrxbuff.h:18
static png_bytep size_t size
Definition: pngwrite.c:2170