ihsm-strain-gage-controller-fw/include/lcd.h
2023-05-26 16:46:47 +02:00

26 lines
443 B
C

#ifndef __LCD_H__
#define __LCD_H__
#include <global.h>
void lcd_init(void);
void lcd_uninit(void);
void lcd_write_dma(const char **buf);
#ifndef LCD_PEX_ADDR
#define LCD_PEX_ADDR 0x4E
#endif
struct lcd_state {
uint8_t buf[512];
uint32_t cr2_buf;
bool led;
bool has_lcd;
ErrorCode error;
};
extern struct lcd_state st_lcd;
void lcd_dma_interrupt(DMA_Channel_TypeDef *channel, uint32_t flags);
#endif /* __LCD_H__ */