fork/GramFirmware

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

CarVacrebase to configurator818d962

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