fork/GramFirmware

git clone https://git.julia.blue/fork/GramFirmware

CarVacrebase to configurator818d962

gram
618 B29 linesraw
1#ifndef _COMMS_GAMECUBEBACKEND_HPP
2#define _COMMS_GAMECUBEBACKEND_HPP
3
4#include "core/CommunicationBackend.hpp"
5
6#include <GamecubeConsole.hpp>
7#include <hardware/pio.h>
8
9class GamecubeBackend : public CommunicationBackend {
10  public:
11    GamecubeBackend(
12        InputState &inputs,
13        InputSource **input_sources,
14        size_t input_source_count,
15        uint data_pin,
16        PIO pio = pio0,
17        int sm = -1,
18        int offset = -1
19    );
20    CommunicationBackendId BackendId();
21    void SendReport();
22    int GetOffset();
23
24  private:
25    GamecubeConsole _gamecube;
26    gc_report_t _report;
27};
28
29#endif