fork/GramFirmware

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

CarVacrebase to configurator818d962

gram
584 B29 linesraw
1#ifndef _COMMS_N64BACKEND_HPP
2#define _COMMS_N64BACKEND_HPP
3
4#include "core/CommunicationBackend.hpp"
5
6#include <N64Console.hpp>
7#include <hardware/pio.h>
8
9class N64Backend : public CommunicationBackend {
10  public:
11    N64Backend(
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    N64Console _n64;
26    n64_report_t _report;
27};
28
29#endif