Lines Matching refs:bits
193 void _pi_lcd_4bits_wr(const struct device *gpio_dev, uint8_t bits) in _pi_lcd_4bits_wr() argument
200 if ((bits & BIT(4)) == BIT(4)) { in _pi_lcd_4bits_wr()
203 if ((bits & BIT(5)) == BIT(5)) { in _pi_lcd_4bits_wr()
206 if ((bits & BIT(6)) == BIT(6)) { in _pi_lcd_4bits_wr()
209 if ((bits & BIT(7)) == BIT(7)) { in _pi_lcd_4bits_wr()
221 if ((bits & BIT(0)) == BIT(0)) { in _pi_lcd_4bits_wr()
224 if ((bits & BIT(1)) == BIT(1)) { in _pi_lcd_4bits_wr()
227 if ((bits & BIT(2)) == BIT(2)) { in _pi_lcd_4bits_wr()
230 if ((bits & BIT(3)) == BIT(3)) { in _pi_lcd_4bits_wr()
238 void _pi_lcd_8bits_wr(const struct device *gpio_dev, uint8_t bits) in _pi_lcd_8bits_wr() argument
251 if ((bits & BIT(0)) == BIT(0)) { in _pi_lcd_8bits_wr()
254 if ((bits & BIT(1)) == BIT(1)) { in _pi_lcd_8bits_wr()
257 if ((bits & BIT(2)) == BIT(2)) { in _pi_lcd_8bits_wr()
260 if ((bits & BIT(3)) == BIT(3)) { in _pi_lcd_8bits_wr()
263 if ((bits & BIT(4)) == BIT(4)) { in _pi_lcd_8bits_wr()
266 if ((bits & BIT(5)) == BIT(5)) { in _pi_lcd_8bits_wr()
269 if ((bits & BIT(6)) == BIT(6)) { in _pi_lcd_8bits_wr()
272 if ((bits & BIT(7)) == BIT(7)) { in _pi_lcd_8bits_wr()
280 void _pi_lcd_data(const struct device *gpio_dev, uint8_t bits) in _pi_lcd_data() argument
283 _pi_lcd_8bits_wr(gpio_dev, bits); in _pi_lcd_data()
285 _pi_lcd_4bits_wr(gpio_dev, bits); in _pi_lcd_data()
289 void _pi_lcd_command(const struct device *gpio_dev, uint8_t bits) in _pi_lcd_command() argument
293 _pi_lcd_data(gpio_dev, bits); in _pi_lcd_command()
296 void _pi_lcd_write(const struct device *gpio_dev, uint8_t bits) in _pi_lcd_write() argument
300 _pi_lcd_data(gpio_dev, bits); in _pi_lcd_write()