Subversion Repositories Code-Repo

Rev

Rev 276 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 276 Rev 278
Line 8... Line 8...
8
 
8
 
9
#define CONTROLLER_PREFIX_ADDRESS   0x10
9
#define CONTROLLER_PREFIX_ADDRESS   0x10
10
#define CONTROLLER_START_ADDRESS    0x01
10
#define CONTROLLER_START_ADDRESS    0x01
11
#define CONTROLLER_END_ADDRESS      0x08
11
#define CONTROLLER_END_ADDRESS      0x08
12
 
12
 
13
#define CONTROLLER_MAX_COUNT    4
13
#define CONTROLLER_MAX_COUNT    8
14
 
14
 
15
#define CONTROLLER_BRIGHTNESS_HIGH  0x80
15
#define CONTROLLER_BRIGHTNESS_HIGH  0x80
16
 
16
 
17
typedef union {
17
typedef union {
18
    struct {
18
    struct {
Line 52... Line 52...
52
 
52
 
53
typedef struct {
53
typedef struct {
54
    void (*change_callback)(uint8_t controller, CTRL_BTN_STATUS values);
54
    void (*change_callback)(uint8_t controller, CTRL_BTN_STATUS values);
55
 
55
 
56
    uint8_t connected_count;
56
    uint8_t connected_count;
-
 
57
    uint8_t next_poll;
57
    uint8_t connected_controllers[CONTROLLER_MAX_COUNT];
58
    uint8_t connected_controllers[CONTROLLER_MAX_COUNT];
58
    CTRL_LED_VALUES led_status[CONTROLLER_MAX_COUNT];
59
    CTRL_LED_VALUES led_status[CONTROLLER_MAX_COUNT];
59
    CTRL_BTN_STATUS btn_prev[CONTROLLER_MAX_COUNT];
60
    CTRL_BTN_STATUS btn_prev[CONTROLLER_MAX_COUNT];
60
    CTRL_BTN_STATUS btn_curr[CONTROLLER_MAX_COUNT];
61
    CTRL_BTN_STATUS btn_curr[CONTROLLER_MAX_COUNT];
61
    
62