]> git.karo-electronics.de Git - oswald.git/blob - ui/oswald_hal.h
bc7a715f4f8f007aa5a15598de0cf24cae72d500
[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 const char *hal_get_version_string(void);
9 const char *hal_get_buildno_string(void);
10 const char *hal_get_radio_version_string(void);
11
12 void hal_lcd_set_pixel(uint8_t x, uint8_t y, uint8_t color);
13 void hal_lcd_clear_display(void);
14 void hal_lcd_update_display(void);
15 /* sets the backlight on/off, on=TRUE, off=FALSE */
16 void hal_lcd_set_backlight(boolean state);
17 boolean hal_lcd_get_backlight(void);
18
19 void hal_enable_centisecond_timer(void);
20 void hal_disable_centisecond_timer(void);
21
22 void hal_enable_halfsecond_timer(void);
23 void hal_disable_halfsecond_timer(void);
24
25 void hal_get_rtc(clock_state *rtc);
26 void hal_set_rtc(clock_state *rtc, boolean set_set);
27 void hal_get_power_state(power_state *pwr);
28
29 /* sets the vibration motor on/off, on=TRUE, off=FALSE */
30 void hal_vibration_set_state(boolean state);
31 boolean hal_vibration_get_state(void);
32
33 bluetooth_state hal_bluetooth_set_state(bluetooth_state state);
34 bluetooth_state hal_bluetooth_get_state(void);
35 uint8_t *hal_bluetooth_get_local_bdaddr(void);
36 void hal_bluetooth_set_visible(boolean visible);
37 boolean hal_bluetooth_get_visible(void);
38 void hal_bluetooth_send_data(const void *mdat, uint16_t mlen);
39
40 void hal_accelerometer_enable(void);
41 void hal_accelerometer_disable(void);
42
43 #endif
44