Subversion Repositories Code-Repo

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
283 Kevin 1
#ifndef CONTROLLERS_H
2
#define	CONTROLLERS_H
3
 
4
#define CONTROLLER_CMD_READ     0xA
5
#define CONTROLLER_CMD_WRITE    0xB
6
 
7
#define CONTROLLER_ADDRESS   0x10
8
 
9
typedef struct {
10
    uint8_t REF;
11
    uint8_t L_X_CH;
12
    uint8_t L_Y_CH;
13
    uint8_t R_X_CH;
14
    uint8_t R_Y_CH;
15
    uint8_t BTN;
16
} CTRL_BTN_STATUS;
17
 
18
void Controller_Init(void);
19
uint8_t Controller_Read(CTRL_BTN_STATUS *btns);
20
void Controller_Set_Led(uint8_t value);
21
 
22
#endif	/* CONTROLLERS_H */
23