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"

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.

Macros

Type Name
define SIMGATEWAY_FW_MAJOR 0
define SIMGATEWAY_FW_MINOR 1
define SIMGATEWAY_FW_PATCH 0

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, parse DCS-BIOS addresses, or interact with CAN. Platform: RP2040 only.

Version:

0.1.0

Copyright:

GPL-2.0-only — see Firmware/LICENSE

Macro Definition Documentation

define SIMGATEWAY_FW_MAJOR

#define SIMGATEWAY_FW_MAJOR `0`

define SIMGATEWAY_FW_MINOR

#define SIMGATEWAY_FW_MINOR `1`

define SIMGATEWAY_FW_PATCH

#define SIMGATEWAY_FW_PATCH `0`


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