]> git.karo-electronics.de Git - oswald.git/blob - ui/oswald_hal.h
ab1e7c0d9bf042a3b1520bafa37e5f65151957cf
[oswald.git] / ui / oswald_hal.h
1 #ifndef _oswald_hal_h
2 #define _oswald_hal_h
3
4 /*
5  * these functions must be implemented for a concrete hardware
6  */
7
8 void hal_lcd_set_pixel(unsigned int x, unsigned int y, unsigned char state);
9 void hal_lcd_clear_display(void);
10 void hal_lcd_update_display(void);
11 /* sets the backlight on/off, on=TRUE, off=FALSE */
12 void hal_lcd_set_backlight(boolean state);
13 boolean hal_lcd_get_backlight(void);
14
15 void hal_enable_centisecond_timer(void);
16 void hal_disable_centisecond_timer(void);
17
18 void hal_enable_halfsecond_timer(void);
19 void hal_disable_halfsecond_timer(void);
20
21 void hal_get_rtc(clock_state *rtc);
22 void hal_set_rtc(clock_state *rtc, boolean set_set);
23 void hal_get_power_state(power_state *pwr);
24
25 /* sets the vibration motor on/off, on=TRUE, off=FALSE */
26 void hal_vibration_set_state(boolean state);
27 boolean hal_vibration_get_state(void);
28
29 bluetooth_state hal_bluetooth_set_state(bluetooth_state state);
30 bluetooth_state hal_bluetooth_get_state(void);
31 uint8_t *hal_bluetooth_get_local_bdaddr(void);
32 void hal_bluetooth_set_visible(boolean visible);
33 boolean hal_bluetooth_get_visible(void);
34 void hal_bluetooth_send_data(const void *mdat, uint16_t mlen);
35 #endif
36