-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardware_controller.h
52 lines (36 loc) · 1.36 KB
/
hardware_controller.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#include <stdint.h>
#ifndef HARDWARE_CONTROLLER_H
#define HARDWARE_CONTROLLER_H
char* registers_map(const char* file_path, int file_size, int* fd);
int registers_release(void* map, int file_size, int fd);
int map_register();
int map_release();
unsigned short get_toggle_display();
void set_toggle_display();
unsigned short get_exhibition_mode();
void set_exhibition_mode(unsigned short new_exhibition_mode);
unsigned short get_display_update_speed();
void set_display_update_speed(unsigned short new_update_speed);
unsigned short get_toggle_operation_LED();
void set_toggle_operation_LED();
unsigned short get_status_LED_color();
void turn_status_LED_off();
void turn_status_LED_on();
void set_status_LED_color_red();
void set_status_LED_color_yellow();
void set_status_LED_color_green();
void set_status_LED_color_blue();
void reset_registers();
unsigned short get_display_color_red();
unsigned short get_display_color_green();
unsigned short get_display_color_blue();
void set_display_color_red(unsigned short red_range);
void set_display_color_green(unsigned short green_range);
void set_display_color_blue(unsigned short blue_range);
unsigned short get_battery_level();
unsigned short get_sliding_message_times();
float get_current_temperature();
void get_display_characters();
void set_display_characters(char new_display_characters[]);
void print_registers();
#endif