Subversion Repositories Code-Repo

Rev

Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

#ifndef CONTROLLERS_H
#define CONTROLLERS_H

#define CONTROLLER_CMD_READ     0xA
#define CONTROLLER_CMD_WRITE    0xB

#define CONTROLLER_ADDRESS   0x10

typedef struct {
    uint8_t REF;
    uint8_t L_X_CH;
    uint8_t L_Y_CH;
    uint8_t R_X_CH;
    uint8_t R_Y_CH;
    uint8_t BTN;
} CTRL_BTN_STATUS;

void Controller_Init(void);
uint8_t Controller_Read(CTRL_BTN_STATUS *btns);
void Controller_Set_Led(uint8_t value);

#endif  /* CONTROLLERS_H */