libs/avr_lib/devices/hd44780.c
uint8_t __readDataReg()
{
    __setDataInput();
    __selDataReg();
    GPIO_setValueLow(&((GPIO_TypeDef)EN));
    _delay_us(1);
    GPIO_setValueHigh(&((GPIO_TypeDef)EN));
    _delay_us(1);
    uint8_t data = __readDataValue();
#ifdef _4BIT_MODE
    GPIO_setValueLow(&((GPIO_TypeDef)EN));
    _delay_us(1);
    GPIO_setValueHigh(&((GPIO_TypeDef)EN));
    _delay_us(1);
    data += __readDataValue() >> 4;
#endif
    GPIO_setValueLow(&((GPIO_TypeDef)EN));
    _DEBUG("__readDataReg() = %x", data);
    return data;
}
// read a value from the data register
read a value from the data register
read a value from the data register
uint8_t __readDataReg()
{
    __setDataInput();
    __selDataReg();
    GPIO_setValueLow(&((GPIO_TypeDef)EN));
    _delay_us(1);
    GPIO_setValueHigh(&((GPIO_TypeDef)EN));
    _delay_us(1);
    uint8_t data = __readDataValue();
#ifdef _4BIT_MODE
    GPIO_setValueLow(&((GPIO_TypeDef)EN));
    _delay_us(1);
    GPIO_setValueHigh(&((GPIO_TypeDef)EN));
    _delay_us(1);
    data += __readDataValue() >> 4;
#endif
    GPIO_setValueLow(&((GPIO_TypeDef)EN));
    _DEBUG("__readDataReg() = %x", data);
    return data;
}
uint8_t __readDataReg ( ) { __setDataInput ( ) ; __selDataReg ( ) ; GPIO_setValueLow ( & ( ( GPIO_TypeDef ) EN ) ) ; _delay_us ( 1 ) ; GPIO_setValueHigh ( & ( ( GPIO_TypeDef ) EN ) ) ; _delay_us ( 1 ) ; uint8_t data = __readDataValue ( ) ; #ifdef _4BIT_MODE GPIO_setValueLow ( & ( ( GPIO_TypeDef ) EN ) ) ; _delay_us ( 1 ) ; GPIO_setValueHigh ( & ( ( GPIO_TypeDef ) EN ) ) ; _delay_us ( 1 ) ; data += __readDataValue ( ) >> 4 ; #endif GPIO_setValueLow ( & ( ( GPIO_TypeDef ) EN ) ) ; _DEBUG ( " " , data ) ; return data ; }
read a value from the data register
read a value from the data register