Files
hd44780u_driver/lcd_hd44780.c
Christian Madsen 43a450b76c commit
2023-12-25 11:02:21 +01:00

50 lines
982 B
C

#include "lcd_hd44780.h"
#include <stddef.h>
void lcd_hd44780_writeToDisp(lcd_hd44780_t *inst){
inst->setGetDataIO_event(inst->DataGpio,inst->port_data,LCD_HD44780_SET);
}
void lcd_hd44780_clearDisp(lcd_hd44780_t *inst){
return;
}
void lcd_hd44780_printf(lcd_hd44780_t *inst, char *string){
return;
}
void lcd_hd44780_regDataEvt(lcd_hd44780_t *inst ,void *inst_Data, setGet_DataGpio_Event_fpt getDataEvt_fpt){
if(inst == NULL)return;
if(inst_Data == NULL)return;
inst->DataGpio = inst_Data;
inst->setGetDataIO_event = getDataEvt_fpt;
}
void lcd_hd44780_regConfigEvt(lcd_hd44780_t *inst ,void *inst_Config, setGet_ConfigGpio_Event_fpt getConfigEvt_fpt){
if(inst == NULL)return;
if(inst_Config == NULL)return;
inst->SettingsGpio = inst_Config;
inst->setGetConfigIO_event = getConfigEvt_fpt;
return;
}
void lcd_hd44780_init(lcd_hd44780_t *inst, lcd_hd44780_bitmode bit_mode){
inst->port_data = 0x00;
inst->bit_mode = bit_mode;
return;
}