Skip to content

File SimGateway.h

FileList > Firmware > Libraries > SimGateway > SimGateway.h

Go to the source code of this file

RP2040 USB HID gateway library for OpenSkyhawk __SimGateway board.More...

  • #include <Arduino.h>
  • #include <HIDControls.h>
  • #include "AxisCal.h"
  • #include "LinkRecovery.h"

Namespaces

Type Name
namespace OpenSkyhawk
Thin wrapper over Adafruit_ADS1115; see ADS1115.h .
namespace SimGateway

Classes

Type Name
class HIDAxis
HID axis handler. Declared at sketch scope for each joystick axis.
class HIDButton
HID button handler. Declared at sketch scope for each button.
class HIDHatSwitch
HID hat switch handler. Declared at sketch scope for each hat switch.

Detailed Description

Owns the USB CDC ↔ UART relay, 0xAA 0x55 HID frame demultiplexer, and HID report batching. HIDAxis, HIDButton, and HIDHatSwitch objects are declared in the sketch at file scope and self-register into linked lists at construction. SimGateway::loop() walks those lists and dispatches matching HID frames into the USB HID report.

Does NOT run DCS-BIOS or parse DCS-BIOS addresses. The relay knows no CAN; the uploader (Uploader.h, #366/#367) drives board bootloaders over CAN through PanelBridge. Platform: RP2040 only.

Copyright:

GPL-2.0-only — see Firmware/LICENSE


The documentation for this class was generated from the following file Firmware/Libraries/SimGateway/SimGateway.h