diff --git a/subprojects/robotpy-hal/pyproject.toml b/subprojects/robotpy-hal/pyproject.toml index f6178f8bd..a6d1d7ee7 100644 --- a/subprojects/robotpy-hal/pyproject.toml +++ b/subprojects/robotpy-hal/pyproject.toml @@ -38,35 +38,12 @@ packages = ["hal"] [tool.semiwrap] update_init = [] + +# NOTE: By default we ignore all HAL APIs, as most of them are exposed in WPILib +# somewhere. If you find something that you need, file a bug and we can add it! + scan_headers_ignore = [ - "hal/ChipObject.h", - "hal/DMA.h", - "hal/Errors.h", - "hal/HAL.h", - "hal/UsageReporting.h", - "hal/Types.h", - "hal/Value.h", - - "hal/cpp/SerialHelper.h", - "hal/cpp/UnsafeDIO.h", - "hal/cpp/fpga_clock.h", - - "hal/handles/DigitalHandleResource.h", - "hal/handles/IndexedClassedHandleResource.h", - "hal/handles/IndexedHandleResource.h", - "hal/handles/LimitedClassedHandleResource.h", - "hal/handles/LimitedHandleResource.h", - "hal/handles/UnlimitedHandleResource.h", - - "hal/roborio/HMB.h", - "hal/roborio/InterruptManager.h", - - "hal/simulation/CanData.h", - "hal/simulation/I2CData.h", - "hal/simulation/NotifyListener.h", - "hal/simulation/SPIData.h", - "hal/simulation/SimCallbackRegistry.h", - "hal/simulation/SimDataValue.h", + "hal/*", "sim_cb.h", "sim_value_cb.h", @@ -80,46 +57,15 @@ depends = ["wpiutil"] [tool.semiwrap.extension_modules."hal._wpiHal".headers] # hal Accelerometer = "hal/Accelerometer.h" -AddressableLED = "hal/AddressableLED.h" -AddressableLEDTypes = "hal/AddressableLEDTypes.h" -AnalogAccumulator = "hal/AnalogAccumulator.h" -AnalogGyro = "hal/AnalogGyro.h" -AnalogInput = "hal/AnalogInput.h" -AnalogOutput = "hal/AnalogOutput.h" -AnalogTrigger = "hal/AnalogTrigger.h" -CAN = "hal/CAN.h" -CANAPI = "hal/CANAPI.h" CANAPITypes = "hal/CANAPITypes.h" -CTREPCM = "hal/CTREPCM.h" -# ChipObject = "hal/ChipObject.h" -Constants = "hal/Constants.h" -Counter = "hal/Counter.h" -DIO = "hal/DIO.h" -# DMA = "hal/DMA.h" DriverStation = "hal/DriverStation.h" DriverStationTypes = "hal/DriverStationTypes.h" -DutyCycle = "hal/DutyCycle.h" -Encoder = "hal/Encoder.h" -# Errors = "hal/Errors.h" Extensions = "hal/Extensions.h" FRCUsageReporting = "hal/FRCUsageReporting.h" -# HAL = "hal/HAL.h" HALBase = "hal/HALBase.h" -I2C = "hal/I2C.h" -I2CTypes = "hal/I2CTypes.h" -Interrupts = "hal/Interrupts.h" -LEDs = "hal/LEDs.h" Main = "hal/Main.h" Notifier = "hal/Notifier.h" -PWM = "hal/PWM.h" -Ports = "hal/Ports.h" -Power = "hal/Power.h" -PowerDistribution = "hal/PowerDistribution.h" -REVPH = "hal/REVPH.h" -Relay = "hal/Relay.h" -SPI = "hal/SPI.h" SPITypes = "hal/SPITypes.h" -SerialPort = "hal/SerialPort.h" SimDevice = "hal/SimDevice.h" Threads = "hal/Threads.h" # Types = "hal/Types.h" @@ -127,22 +73,6 @@ Threads = "hal/Threads.h" # hal/cpp SerialHelper = { header="hal/cpp/SerialHelper.h", enable_if="platform_machine == 'roborio'" } -# UnsafeDIO = "hal/cpp/UnsafeDIO.h" -# fpga_clock = "hal/cpp/fpga_clock.h" - -# hal/handles -# DigitalHandleResource = "hal/handles/DigitalHandleResource.h" -HandlesInternal = "hal/handles/HandlesInternal.h" -# IndexedClassedHandleResource = "hal/handles/IndexedClassedHandleResource.h" -# IndexedHandleResource = "hal/handles/IndexedHandleResource.h" -# LimitedClassedHandleResource = "hal/handles/LimitedClassedHandleResource.h" -# LimitedHandleResource = "hal/handles/LimitedHandleResource.h" -# UnlimitedHandleResource = "hal/handles/UnlimitedHandleResource.h" - -# hal/roborio -# HMB = "hal/roborio/HMB.h" -# InterruptManager = "hal/roborio/InterruptManager.h" - [tool.semiwrap.extension_modules."hal.simulation._simulation"] name = "hal_simulation" @@ -151,31 +81,8 @@ depends = ["wpiutil"] yaml_path = "semiwrap/simulation" [tool.semiwrap.extension_modules."hal.simulation._simulation".headers] -AccelerometerData = "hal/simulation/AccelerometerData.h" -AddressableLEDData = "hal/simulation/AddressableLEDData.h" -AnalogGyroData = "hal/simulation/AnalogGyroData.h" -AnalogInData = "hal/simulation/AnalogInData.h" -AnalogOutData = "hal/simulation/AnalogOutData.h" -AnalogTriggerData = "hal/simulation/AnalogTriggerData.h" -CTREPCMData = "hal/simulation/CTREPCMData.h" -# CanData = "hal/simulation/CanData.h" -DIOData = "hal/simulation/DIOData.h" -DigitalPWMData = "hal/simulation/DigitalPWMData.h" DriverStationData = "hal/simulation/DriverStationData.h" -DutyCycleData = "hal/simulation/DutyCycleData.h" -EncoderData = "hal/simulation/EncoderData.h" -# I2CData = "hal/simulation/I2CData.h" MockHooks = "hal/simulation/MockHooks.h" NotifierData = "hal/simulation/NotifierData.h" -# NotifyListener = "hal/simulation/NotifyListener.h" -PWMData = "hal/simulation/PWMData.h" -PowerDistributionData = "hal/simulation/PowerDistributionData.h" -REVPHData = "hal/simulation/REVPHData.h" -RelayData = "hal/simulation/RelayData.h" Reset = "hal/simulation/Reset.h" -RoboRioData = "hal/simulation/RoboRioData.h" -SPIAccelerometerData = "hal/simulation/SPIAccelerometerData.h" -# SPIData = "hal/simulation/SPIData.h" -# SimCallbackRegistry = "hal/simulation/SimCallbackRegistry.h" -# SimDataValue = "hal/simulation/SimDataValue.h" SimDeviceData = "hal/simulation/SimDeviceData.h" diff --git a/subprojects/robotpy-hal/semiwrap/AddressableLED.yml b/subprojects/robotpy-hal/semiwrap/AddressableLED.yml deleted file mode 100644 index 14c088c08..000000000 --- a/subprojects/robotpy-hal/semiwrap/AddressableLED.yml +++ /dev/null @@ -1,14 +0,0 @@ -strip_prefixes: -- HAL_ - -functions: - HAL_InitializeAddressableLED: - HAL_FreeAddressableLED: - HAL_SetAddressableLEDOutputPort: - HAL_SetAddressableLEDLength: - HAL_WriteAddressableLEDData: - HAL_SetAddressableLEDBitTiming: - HAL_SetAddressableLEDSyncTime: - HAL_StartAddressableLEDOutput: - HAL_StopAddressableLEDOutput: - HAL_SetAddressableLEDColorOrder: diff --git a/subprojects/robotpy-hal/semiwrap/AddressableLEDTypes.yml b/subprojects/robotpy-hal/semiwrap/AddressableLEDTypes.yml deleted file mode 100644 index 4caea237d..000000000 --- a/subprojects/robotpy-hal/semiwrap/AddressableLEDTypes.yml +++ /dev/null @@ -1,16 +0,0 @@ -strip_prefixes: -- HAL_ - -classes: - HAL_AddressableLEDData: - attributes: - b: - g: - r: - padding: - ignore: true -enums: - HAL_AddressableLEDColorOrder: -functions: - format_as: - ignore: true diff --git a/subprojects/robotpy-hal/semiwrap/AnalogAccumulator.yml b/subprojects/robotpy-hal/semiwrap/AnalogAccumulator.yml deleted file mode 100644 index f2dacdef8..000000000 --- a/subprojects/robotpy-hal/semiwrap/AnalogAccumulator.yml +++ /dev/null @@ -1,12 +0,0 @@ -strip_prefixes: -- HAL_ - -functions: - HAL_IsAccumulatorChannel: - HAL_InitAccumulator: - HAL_ResetAccumulator: - HAL_SetAccumulatorCenter: - HAL_SetAccumulatorDeadband: - HAL_GetAccumulatorValue: - HAL_GetAccumulatorCount: - HAL_GetAccumulatorOutput: diff --git a/subprojects/robotpy-hal/semiwrap/AnalogGyro.yml b/subprojects/robotpy-hal/semiwrap/AnalogGyro.yml deleted file mode 100644 index 9fbd55f3a..000000000 --- a/subprojects/robotpy-hal/semiwrap/AnalogGyro.yml +++ /dev/null @@ -1,16 +0,0 @@ -strip_prefixes: -- HAL_ - -functions: - HAL_InitializeAnalogGyro: - HAL_SetupAnalogGyro: - HAL_FreeAnalogGyro: - HAL_SetAnalogGyroParameters: - HAL_SetAnalogGyroVoltsPerDegreePerSecond: - HAL_ResetAnalogGyro: - HAL_CalibrateAnalogGyro: - HAL_SetAnalogGyroDeadband: - HAL_GetAnalogGyroAngle: - HAL_GetAnalogGyroRate: - HAL_GetAnalogGyroOffset: - HAL_GetAnalogGyroCenter: diff --git a/subprojects/robotpy-hal/semiwrap/AnalogInput.yml b/subprojects/robotpy-hal/semiwrap/AnalogInput.yml deleted file mode 100644 index c1e831f14..000000000 --- a/subprojects/robotpy-hal/semiwrap/AnalogInput.yml +++ /dev/null @@ -1,23 +0,0 @@ -strip_prefixes: -- HAL_ - -functions: - HAL_InitializeAnalogInputPort: - HAL_FreeAnalogInputPort: - HAL_CheckAnalogModule: - HAL_CheckAnalogInputChannel: - HAL_SetAnalogInputSimDevice: - HAL_SetAnalogSampleRate: - HAL_GetAnalogSampleRate: - HAL_SetAnalogAverageBits: - HAL_GetAnalogAverageBits: - HAL_SetAnalogOversampleBits: - HAL_GetAnalogOversampleBits: - HAL_GetAnalogValue: - HAL_GetAnalogAverageValue: - HAL_GetAnalogVoltsToValue: - HAL_GetAnalogVoltage: - HAL_GetAnalogAverageVoltage: - HAL_GetAnalogLSBWeight: - HAL_GetAnalogOffset: - HAL_GetAnalogValueToVolts: diff --git a/subprojects/robotpy-hal/semiwrap/AnalogOutput.yml b/subprojects/robotpy-hal/semiwrap/AnalogOutput.yml deleted file mode 100644 index fe29efda2..000000000 --- a/subprojects/robotpy-hal/semiwrap/AnalogOutput.yml +++ /dev/null @@ -1,9 +0,0 @@ -strip_prefixes: -- HAL_ - -functions: - HAL_InitializeAnalogOutputPort: - HAL_FreeAnalogOutputPort: - HAL_SetAnalogOutput: - HAL_GetAnalogOutput: - HAL_CheckAnalogOutputChannel: diff --git a/subprojects/robotpy-hal/semiwrap/AnalogTrigger.yml b/subprojects/robotpy-hal/semiwrap/AnalogTrigger.yml deleted file mode 100644 index 90b48ccbe..000000000 --- a/subprojects/robotpy-hal/semiwrap/AnalogTrigger.yml +++ /dev/null @@ -1,19 +0,0 @@ -strip_prefixes: -- HAL_ - -enums: - HAL_AnalogTriggerType: - value_prefix: HAL_Trigger -functions: - HAL_InitializeAnalogTrigger: - HAL_InitializeAnalogTriggerDutyCycle: - HAL_CleanAnalogTrigger: - HAL_SetAnalogTriggerLimitsRaw: - HAL_SetAnalogTriggerLimitsVoltage: - HAL_SetAnalogTriggerLimitsDutyCycle: - HAL_SetAnalogTriggerAveraged: - HAL_SetAnalogTriggerFiltered: - HAL_GetAnalogTriggerInWindow: - HAL_GetAnalogTriggerTriggerState: - HAL_GetAnalogTriggerOutput: - HAL_GetAnalogTriggerFPGAIndex: diff --git a/subprojects/robotpy-hal/semiwrap/CAN.yml b/subprojects/robotpy-hal/semiwrap/CAN.yml deleted file mode 100644 index 8515acdbd..000000000 --- a/subprojects/robotpy-hal/semiwrap/CAN.yml +++ /dev/null @@ -1,22 +0,0 @@ -strip_prefixes: -- HAL_ - -functions: - HAL_CAN_SendMessage: - buffers: - - {type: IN, src: data, len: dataSize} - HAL_CAN_ReceiveMessage: - buffers: - - {type: OUT, src: data, len: dataSize, minsz: 8} - HAL_CAN_OpenStreamSession: - HAL_CAN_CloseStreamSession: - HAL_CAN_ReadStreamSession: - ignore: true # TODO: an array of messages - HAL_CAN_GetCANStatus: -classes: - HAL_CANStreamMessage: - attributes: - messageID: - timeStamp: - data: - dataSize: diff --git a/subprojects/robotpy-hal/semiwrap/CANAPI.yml b/subprojects/robotpy-hal/semiwrap/CANAPI.yml deleted file mode 100644 index a5581822f..000000000 --- a/subprojects/robotpy-hal/semiwrap/CANAPI.yml +++ /dev/null @@ -1,24 +0,0 @@ -strip_prefixes: -- HAL_ - -functions: - HAL_GetCANPacketBaseTime: - HAL_InitializeCAN: - HAL_CleanCAN: - HAL_WriteCANPacket: - buffers: - - {type: IN, src: data, len: length} - HAL_WriteCANPacketRepeating: - buffers: - - {type: IN, src: data, len: length} - HAL_WriteCANRTRFrame: - HAL_StopCANPacketRepeating: - HAL_ReadCANPacketNew: - buffers: - - {type: OUT, src: data, len: length, minsz: 8} - HAL_ReadCANPacketLatest: - buffers: - - {type: OUT, src: data, len: length, minsz: 8} - HAL_ReadCANPacketTimeout: - buffers: - - {type: OUT, src: data, len: length, minsz: 8} diff --git a/subprojects/robotpy-hal/semiwrap/CTREPCM.yml b/subprojects/robotpy-hal/semiwrap/CTREPCM.yml deleted file mode 100644 index 941493239..000000000 --- a/subprojects/robotpy-hal/semiwrap/CTREPCM.yml +++ /dev/null @@ -1,26 +0,0 @@ -strip_prefixes: -- HAL_ - -functions: - HAL_InitializeCTREPCM: - HAL_FreeCTREPCM: - HAL_CheckCTREPCMSolenoidChannel: - HAL_GetCTREPCMCompressor: - HAL_SetCTREPCMClosedLoopControl: - HAL_GetCTREPCMClosedLoopControl: - HAL_GetCTREPCMPressureSwitch: - HAL_GetCTREPCMCompressorCurrent: - HAL_GetCTREPCMCompressorCurrentTooHighFault: - HAL_GetCTREPCMCompressorCurrentTooHighStickyFault: - HAL_GetCTREPCMCompressorShortedStickyFault: - HAL_GetCTREPCMCompressorShortedFault: - HAL_GetCTREPCMCompressorNotConnectedStickyFault: - HAL_GetCTREPCMCompressorNotConnectedFault: - HAL_GetCTREPCMSolenoids: - HAL_SetCTREPCMSolenoids: - HAL_GetCTREPCMSolenoidDisabledList: - HAL_GetCTREPCMSolenoidVoltageStickyFault: - HAL_GetCTREPCMSolenoidVoltageFault: - HAL_ClearAllCTREPCMStickyFaults: - HAL_FireCTREPCMOneShot: - HAL_SetCTREPCMOneShotDuration: diff --git a/subprojects/robotpy-hal/semiwrap/Constants.yml b/subprojects/robotpy-hal/semiwrap/Constants.yml deleted file mode 100644 index bf0a5b4b8..000000000 --- a/subprojects/robotpy-hal/semiwrap/Constants.yml +++ /dev/null @@ -1,5 +0,0 @@ -strip_prefixes: -- HAL_ - -functions: - HAL_GetSystemClockTicksPerMicrosecond: diff --git a/subprojects/robotpy-hal/semiwrap/Counter.yml b/subprojects/robotpy-hal/semiwrap/Counter.yml deleted file mode 100644 index 33808a49b..000000000 --- a/subprojects/robotpy-hal/semiwrap/Counter.yml +++ /dev/null @@ -1,31 +0,0 @@ -strip_prefixes: -- HAL_ - -enums: - HAL_Counter_Mode: - rename: CounterMode - value_prefix: HAL_Counter -functions: - HAL_InitializeCounter: - HAL_FreeCounter: - HAL_SetCounterAverageSize: - HAL_SetCounterUpSource: - HAL_SetCounterUpSourceEdge: - HAL_ClearCounterUpSource: - HAL_SetCounterDownSource: - HAL_SetCounterDownSourceEdge: - HAL_ClearCounterDownSource: - HAL_SetCounterUpDownMode: - HAL_SetCounterExternalDirectionMode: - HAL_SetCounterSemiPeriodMode: - HAL_SetCounterPulseLengthMode: - HAL_GetCounterSamplesToAverage: - HAL_SetCounterSamplesToAverage: - HAL_ResetCounter: - HAL_GetCounter: - HAL_GetCounterPeriod: - HAL_SetCounterMaxPeriod: - HAL_SetCounterUpdateWhenEmpty: - HAL_GetCounterStopped: - HAL_GetCounterDirection: - HAL_SetCounterReverseDirection: diff --git a/subprojects/robotpy-hal/semiwrap/DIO.yml b/subprojects/robotpy-hal/semiwrap/DIO.yml deleted file mode 100644 index 80d2183b6..000000000 --- a/subprojects/robotpy-hal/semiwrap/DIO.yml +++ /dev/null @@ -1,26 +0,0 @@ -strip_prefixes: -- HAL_ - -functions: - HAL_InitializeDIOPort: - HAL_CheckDIOChannel: - HAL_FreeDIOPort: - HAL_SetDIOSimDevice: - HAL_AllocateDigitalPWM: - HAL_FreeDigitalPWM: - HAL_SetDigitalPWMRate: - HAL_SetDigitalPWMDutyCycle: - HAL_SetDigitalPWMPPS: - HAL_SetDigitalPWMOutputChannel: - HAL_SetDIO: - HAL_SetDIODirection: - HAL_GetDIO: - HAL_GetDIODirection: - HAL_Pulse: - HAL_PulseMultiple: - HAL_IsPulsing: - HAL_IsAnyPulsing: - HAL_SetFilterSelect: - HAL_GetFilterSelect: - HAL_SetFilterPeriod: - HAL_GetFilterPeriod: diff --git a/subprojects/robotpy-hal/semiwrap/DutyCycle.yml b/subprojects/robotpy-hal/semiwrap/DutyCycle.yml deleted file mode 100644 index bf2bf105c..000000000 --- a/subprojects/robotpy-hal/semiwrap/DutyCycle.yml +++ /dev/null @@ -1,13 +0,0 @@ -strip_prefixes: -- HAL_ - -functions: - HAL_InitializeDutyCycle: - HAL_FreeDutyCycle: - HAL_SetDutyCycleSimDevice: - ifndef: __FRC_ROBORIO__ - HAL_GetDutyCycleFrequency: - HAL_GetDutyCycleOutput: - HAL_GetDutyCycleHighTime: - HAL_GetDutyCycleOutputScaleFactor: - HAL_GetDutyCycleFPGAIndex: diff --git a/subprojects/robotpy-hal/semiwrap/Encoder.yml b/subprojects/robotpy-hal/semiwrap/Encoder.yml deleted file mode 100644 index 219026b79..000000000 --- a/subprojects/robotpy-hal/semiwrap/Encoder.yml +++ /dev/null @@ -1,32 +0,0 @@ -strip_prefixes: -- HAL_ - -enums: - HAL_EncoderIndexingType: - value_prefix: HAL - HAL_EncoderEncodingType: - value_prefix: HAL -functions: - HAL_InitializeEncoder: - HAL_FreeEncoder: - HAL_SetEncoderSimDevice: - HAL_GetEncoder: - HAL_GetEncoderRaw: - HAL_GetEncoderEncodingScale: - HAL_ResetEncoder: - HAL_GetEncoderPeriod: - HAL_SetEncoderMaxPeriod: - HAL_GetEncoderStopped: - HAL_GetEncoderDirection: - HAL_GetEncoderDistance: - HAL_GetEncoderRate: - HAL_SetEncoderMinRate: - HAL_SetEncoderDistancePerPulse: - HAL_SetEncoderReverseDirection: - HAL_SetEncoderSamplesToAverage: - HAL_GetEncoderSamplesToAverage: - HAL_SetEncoderIndexSource: - HAL_GetEncoderFPGAIndex: - HAL_GetEncoderDecodingScaleFactor: - HAL_GetEncoderDistancePerPulse: - HAL_GetEncoderEncodingType: diff --git a/subprojects/robotpy-hal/semiwrap/HandlesInternal.yml b/subprojects/robotpy-hal/semiwrap/HandlesInternal.yml deleted file mode 100644 index c2bf24fe6..000000000 --- a/subprojects/robotpy-hal/semiwrap/HandlesInternal.yml +++ /dev/null @@ -1,20 +0,0 @@ -strip_prefixes: -- HAL_ - -enums: - HAL_HandleEnum: -functions: - getHandleIndex: - getHandleType: - isHandleType: - isHandleCorrectVersion: - getHandleTypedIndex: - getPortHandleChannel: - getPortHandleModule: - getPortHandleSPIEnable: - createPortHandle: - createPortHandleForSPI: - createHandle: -classes: - hal::HandleBase: - ignore: true diff --git a/subprojects/robotpy-hal/semiwrap/I2C.yml b/subprojects/robotpy-hal/semiwrap/I2C.yml deleted file mode 100644 index 9a6e02070..000000000 --- a/subprojects/robotpy-hal/semiwrap/I2C.yml +++ /dev/null @@ -1,16 +0,0 @@ -strip_prefixes: -- HAL_ - -functions: - HAL_InitializeI2C: - HAL_TransactionI2C: - buffers: - - {type: IN, src: dataToSend, len: sendSize} - - {type: OUT, src: dataReceived, len: receiveSize} - HAL_WriteI2C: - buffers: - - {type: IN, src: dataToSend, len: sendSize} - HAL_ReadI2C: - buffers: - - {type: OUT, src: buffer, len: count} - HAL_CloseI2C: diff --git a/subprojects/robotpy-hal/semiwrap/I2CTypes.yml b/subprojects/robotpy-hal/semiwrap/I2CTypes.yml deleted file mode 100644 index 6286d100e..000000000 --- a/subprojects/robotpy-hal/semiwrap/I2CTypes.yml +++ /dev/null @@ -1,6 +0,0 @@ -strip_prefixes: -- HAL_ - -enums: - HAL_I2CPort: - value_prefix: HAL_I2C diff --git a/subprojects/robotpy-hal/semiwrap/Interrupts.yml b/subprojects/robotpy-hal/semiwrap/Interrupts.yml deleted file mode 100644 index c644f83d6..000000000 --- a/subprojects/robotpy-hal/semiwrap/Interrupts.yml +++ /dev/null @@ -1,13 +0,0 @@ -strip_prefixes: -- HAL_ - -functions: - HAL_InitializeInterrupts: - HAL_CleanInterrupts: - HAL_WaitForInterrupt: - HAL_WaitForMultipleInterrupts: - HAL_ReadInterruptRisingTimestamp: - HAL_ReadInterruptFallingTimestamp: - HAL_RequestInterrupts: - HAL_SetInterruptUpSourceEdge: - HAL_ReleaseWaitingInterrupt: diff --git a/subprojects/robotpy-hal/semiwrap/LEDs.yml b/subprojects/robotpy-hal/semiwrap/LEDs.yml deleted file mode 100644 index 93785cf8a..000000000 --- a/subprojects/robotpy-hal/semiwrap/LEDs.yml +++ /dev/null @@ -1,5 +0,0 @@ -enums: - HAL_RadioLEDState: -functions: - HAL_SetRadioLEDState: - HAL_GetRadioLEDState: diff --git a/subprojects/robotpy-hal/semiwrap/PWM.yml b/subprojects/robotpy-hal/semiwrap/PWM.yml deleted file mode 100644 index ac9248971..000000000 --- a/subprojects/robotpy-hal/semiwrap/PWM.yml +++ /dev/null @@ -1,23 +0,0 @@ -strip_prefixes: -- HAL_ - -functions: - HAL_InitializePWMPort: - HAL_FreePWMPort: - HAL_CheckPWMChannel: - HAL_SetPWMConfigMicroseconds: - HAL_GetPWMConfigMicroseconds: - HAL_SetPWMEliminateDeadband: - HAL_GetPWMEliminateDeadband: - HAL_SetPWMPulseTimeMicroseconds: - HAL_GetPWMPulseTimeMicroseconds: - HAL_SetPWMSpeed: - HAL_SetPWMPosition: - HAL_SetPWMDisabled: - HAL_GetPWMSpeed: - HAL_GetPWMPosition: - HAL_LatchPWMZero: - HAL_SetPWMPeriodScale: - HAL_SetPWMAlwaysHighMode: - HAL_GetPWMLoopTiming: - HAL_GetPWMCycleStartTime: diff --git a/subprojects/robotpy-hal/semiwrap/Ports.yml b/subprojects/robotpy-hal/semiwrap/Ports.yml deleted file mode 100644 index d4124e80d..000000000 --- a/subprojects/robotpy-hal/semiwrap/Ports.yml +++ /dev/null @@ -1,28 +0,0 @@ -strip_prefixes: -- HAL_ - -functions: - HAL_GetNumAccumulators: - HAL_GetNumAnalogTriggers: - HAL_GetNumAnalogInputs: - HAL_GetNumAnalogOutputs: - HAL_GetNumCounters: - HAL_GetNumDigitalHeaders: - HAL_GetNumPWMHeaders: - HAL_GetNumDigitalChannels: - HAL_GetNumPWMChannels: - HAL_GetNumDigitalPWMOutputs: - HAL_GetNumEncoders: - HAL_GetNumInterrupts: - HAL_GetNumRelayChannels: - HAL_GetNumRelayHeaders: - HAL_GetNumDutyCycles: - HAL_GetNumAddressableLEDs: - HAL_GetNumCTREPCMModules: - HAL_GetNumCTRESolenoidChannels: - HAL_GetNumCTREPDPModules: - HAL_GetNumCTREPDPChannels: - HAL_GetNumREVPDHModules: - HAL_GetNumREVPDHChannels: - HAL_GetNumREVPHModules: - HAL_GetNumREVPHChannels: diff --git a/subprojects/robotpy-hal/semiwrap/Power.yml b/subprojects/robotpy-hal/semiwrap/Power.yml deleted file mode 100644 index 402cf7337..000000000 --- a/subprojects/robotpy-hal/semiwrap/Power.yml +++ /dev/null @@ -1,25 +0,0 @@ -strip_prefixes: -- HAL_ - -functions: - HAL_GetVinVoltage: - HAL_GetVinCurrent: - HAL_GetUserVoltage6V: - HAL_GetUserCurrent6V: - HAL_GetUserActive6V: - HAL_GetUserCurrentFaults6V: - HAL_SetUserRailEnabled6V: - HAL_GetUserVoltage5V: - HAL_GetUserCurrent5V: - HAL_GetUserActive5V: - HAL_GetUserCurrentFaults5V: - HAL_SetUserRailEnabled5V: - HAL_GetUserVoltage3V3: - HAL_GetUserCurrent3V3: - HAL_GetUserActive3V3: - HAL_GetUserCurrentFaults3V3: - HAL_SetUserRailEnabled3V3: - HAL_GetBrownoutVoltage: - HAL_SetBrownoutVoltage: - HAL_GetCPUTemp: - HAL_ResetUserCurrentFaults: diff --git a/subprojects/robotpy-hal/semiwrap/PowerDistribution.yml b/subprojects/robotpy-hal/semiwrap/PowerDistribution.yml deleted file mode 100644 index 046789806..000000000 --- a/subprojects/robotpy-hal/semiwrap/PowerDistribution.yml +++ /dev/null @@ -1,105 +0,0 @@ -strip_prefixes: -- HAL_ - -enums: - HAL_PowerDistributionType: -functions: - HAL_InitializePowerDistribution: - HAL_GetPowerDistributionModuleNumber: - HAL_CleanPowerDistribution: - HAL_CheckPowerDistributionChannel: - HAL_CheckPowerDistributionModule: - HAL_GetPowerDistributionType: - HAL_GetPowerDistributionNumChannels: - HAL_GetPowerDistributionTemperature: - HAL_GetPowerDistributionVoltage: - HAL_GetPowerDistributionChannelCurrent: - HAL_GetPowerDistributionAllChannelCurrents: - HAL_GetPowerDistributionTotalCurrent: - HAL_GetPowerDistributionTotalPower: - HAL_GetPowerDistributionTotalEnergy: - HAL_ResetPowerDistributionTotalEnergy: - HAL_ClearPowerDistributionStickyFaults: - HAL_SetPowerDistributionSwitchableChannel: - HAL_GetPowerDistributionSwitchableChannel: - HAL_GetPowerDistributionVersion: - HAL_GetPowerDistributionFaults: - HAL_GetPowerDistributionStickyFaults: - HAL_StartPowerDistributionStream: - ifdef: __FRC_ROBORIO__ - HAL_GetPowerDistributionStreamData: - ifdef: __FRC_ROBORIO__ - HAL_FreePowerDistributionStreamData: - ifdef: __FRC_ROBORIO__ - HAL_StopPowerDistributionStream: - ifdef: __FRC_ROBORIO__ -classes: - HAL_PowerDistributionVersion: - attributes: - firmwareMajor: - firmwareMinor: - firmwareFix: - hardwareMinor: - hardwareMajor: - uniqueId: - HAL_PowerDistributionFaults: - attributes: - channel0BreakerFault: - channel1BreakerFault: - channel2BreakerFault: - channel3BreakerFault: - channel4BreakerFault: - channel5BreakerFault: - channel6BreakerFault: - channel7BreakerFault: - channel8BreakerFault: - channel9BreakerFault: - channel10BreakerFault: - channel11BreakerFault: - channel12BreakerFault: - channel13BreakerFault: - channel14BreakerFault: - channel15BreakerFault: - channel16BreakerFault: - channel17BreakerFault: - channel18BreakerFault: - channel19BreakerFault: - channel20BreakerFault: - channel21BreakerFault: - channel22BreakerFault: - channel23BreakerFault: - brownout: - canWarning: - hardwareFault: - HAL_PowerDistributionStickyFaults: - attributes: - channel0BreakerFault: - channel1BreakerFault: - channel2BreakerFault: - channel3BreakerFault: - channel4BreakerFault: - channel5BreakerFault: - channel6BreakerFault: - channel7BreakerFault: - channel8BreakerFault: - channel9BreakerFault: - channel10BreakerFault: - channel11BreakerFault: - channel12BreakerFault: - channel13BreakerFault: - channel14BreakerFault: - channel15BreakerFault: - channel16BreakerFault: - channel17BreakerFault: - channel18BreakerFault: - channel19BreakerFault: - channel20BreakerFault: - channel21BreakerFault: - channel22BreakerFault: - channel23BreakerFault: - brownout: - canWarning: - canBusOff: - hasReset: - hardwareFault: - firmwareFault: diff --git a/subprojects/robotpy-hal/semiwrap/REVPH.yml b/subprojects/robotpy-hal/semiwrap/REVPH.yml deleted file mode 100644 index 32532b9c1..000000000 --- a/subprojects/robotpy-hal/semiwrap/REVPH.yml +++ /dev/null @@ -1,82 +0,0 @@ -strip_prefixes: -- HAL_ - -enums: - HAL_REVPHCompressorConfigType: -functions: - HAL_InitializeREVPH: - HAL_FreeREVPH: - HAL_CheckREVPHSolenoidChannel: - HAL_CheckREVPHModuleNumber: - HAL_GetREVPHCompressor: - HAL_SetREVPHCompressorConfig: - HAL_SetREVPHClosedLoopControlDisabled: - HAL_SetREVPHClosedLoopControlDigital: - HAL_SetREVPHClosedLoopControlAnalog: - HAL_SetREVPHClosedLoopControlHybrid: - HAL_GetREVPHCompressorConfig: - HAL_GetREVPHPressureSwitch: - HAL_GetREVPHCompressorCurrent: - HAL_GetREVPHAnalogVoltage: - HAL_GetREVPHVoltage: - HAL_GetREVPH5VVoltage: - HAL_GetREVPHSolenoidCurrent: - HAL_GetREVPHSolenoidVoltage: - HAL_GetREVPHVersion: - HAL_GetREVPHSolenoids: - HAL_SetREVPHSolenoids: - HAL_FireREVPHOneShot: - HAL_GetREVPHFaults: - HAL_GetREVPHStickyFaults: - HAL_ClearREVPHStickyFaults: - HAL_GetREVPHSolenoidDisabledList: -classes: - HAL_REVPHVersion: - attributes: - firmwareMajor: - firmwareMinor: - firmwareFix: - hardwareMinor: - hardwareMajor: - uniqueId: - HAL_REVPHCompressorConfig: - attributes: - minAnalogVoltage: - maxAnalogVoltage: - forceDisable: - useDigital: - HAL_REVPHFaults: - attributes: - channel0Fault: - channel1Fault: - channel2Fault: - channel3Fault: - channel4Fault: - channel5Fault: - channel6Fault: - channel7Fault: - channel8Fault: - channel9Fault: - channel10Fault: - channel11Fault: - channel12Fault: - channel13Fault: - channel14Fault: - channel15Fault: - compressorOverCurrent: - compressorOpen: - solenoidOverCurrent: - brownout: - canWarning: - hardwareFault: - HAL_REVPHStickyFaults: - attributes: - compressorOverCurrent: - compressorOpen: - solenoidOverCurrent: - brownout: - canWarning: - canBusOff: - hasReset: - hardwareFault: - firmwareFault: diff --git a/subprojects/robotpy-hal/semiwrap/Relay.yml b/subprojects/robotpy-hal/semiwrap/Relay.yml deleted file mode 100644 index bf3b2d10c..000000000 --- a/subprojects/robotpy-hal/semiwrap/Relay.yml +++ /dev/null @@ -1,9 +0,0 @@ -strip_prefixes: -- HAL_ - -functions: - HAL_InitializeRelayPort: - HAL_FreeRelayPort: - HAL_CheckRelayChannel: - HAL_SetRelay: - HAL_GetRelay: diff --git a/subprojects/robotpy-hal/semiwrap/SPI.yml b/subprojects/robotpy-hal/semiwrap/SPI.yml deleted file mode 100644 index 7ef9baebc..000000000 --- a/subprojects/robotpy-hal/semiwrap/SPI.yml +++ /dev/null @@ -1,38 +0,0 @@ -strip_prefixes: -- HAL_ - -functions: - HAL_InitializeSPI: - HAL_TransactionSPI: - buffers: - - {type: IN, src: dataToSend, len: size} - - {type: OUT, src: dataReceived, len: size} - # TODO: dataToSend buffer must be at least as long as dataReceived buffer - HAL_WriteSPI: - buffers: - - {type: IN, src: dataToSend, len: sendSize} - HAL_ReadSPI: - buffers: - - {type: OUT, src: buffer, len: count} - HAL_CloseSPI: - HAL_SetSPISpeed: - HAL_SetSPIMode: - HAL_GetSPIMode: - HAL_SetSPIChipSelectActiveHigh: - HAL_SetSPIChipSelectActiveLow: - HAL_GetSPIHandle: - HAL_SetSPIHandle: - HAL_InitSPIAuto: - HAL_FreeSPIAuto: - HAL_StartSPIAutoRate: - HAL_StartSPIAutoTrigger: - HAL_StopSPIAuto: - HAL_SetSPIAutoTransmitData: - buffers: - - {type: IN, src: dataToSend, len: dataSize} - HAL_ForceSPIAutoRead: - HAL_ReadSPIAutoReceivedData: - buffers: - - {type: OUT, src: buffer, len: numToRead} - HAL_GetSPIAutoDroppedCount: - HAL_ConfigureSPIAutoStall: diff --git a/subprojects/robotpy-hal/semiwrap/SerialPort.yml b/subprojects/robotpy-hal/semiwrap/SerialPort.yml deleted file mode 100644 index fb197b3dd..000000000 --- a/subprojects/robotpy-hal/semiwrap/SerialPort.yml +++ /dev/null @@ -1,30 +0,0 @@ -strip_prefixes: -- HAL_ - -enums: - HAL_SerialPort: -functions: - HAL_InitializeSerialPort: - HAL_InitializeSerialPortDirect: - HAL_GetSerialFD: - HAL_SetSerialBaudRate: - HAL_SetSerialDataBits: - HAL_SetSerialParity: - HAL_SetSerialStopBits: - HAL_SetSerialWriteMode: - HAL_SetSerialFlowControl: - HAL_SetSerialTimeout: - HAL_EnableSerialTermination: - HAL_DisableSerialTermination: - HAL_SetSerialReadBufferSize: - HAL_SetSerialWriteBufferSize: - HAL_GetSerialBytesReceived: - HAL_ReadSerial: - buffers: - - {type: OUT, src: buffer, len: count} - HAL_WriteSerial: - buffers: - - {type: IN, src: buffer, len: count} - HAL_FlushSerial: - HAL_ClearSerial: - HAL_CloseSerial: diff --git a/subprojects/robotpy-hal/semiwrap/simulation/AccelerometerData.yml b/subprojects/robotpy-hal/semiwrap/simulation/AccelerometerData.yml deleted file mode 100644 index 56ef358b5..000000000 --- a/subprojects/robotpy-hal/semiwrap/simulation/AccelerometerData.yml +++ /dev/null @@ -1,32 +0,0 @@ -strip_prefixes: -- HALSIM_ - -functions: - HALSIM_ResetAccelerometerData: - HALSIM_RegisterAccelerometerActiveCallback: - ignore: true - HALSIM_CancelAccelerometerActiveCallback: - HALSIM_GetAccelerometerActive: - HALSIM_SetAccelerometerActive: - HALSIM_RegisterAccelerometerRangeCallback: - ignore: true - HALSIM_CancelAccelerometerRangeCallback: - HALSIM_GetAccelerometerRange: - HALSIM_SetAccelerometerRange: - HALSIM_RegisterAccelerometerXCallback: - ignore: true - HALSIM_CancelAccelerometerXCallback: - HALSIM_GetAccelerometerX: - HALSIM_SetAccelerometerX: - HALSIM_RegisterAccelerometerYCallback: - ignore: true - HALSIM_CancelAccelerometerYCallback: - HALSIM_GetAccelerometerY: - HALSIM_SetAccelerometerY: - HALSIM_RegisterAccelerometerZCallback: - ignore: true - HALSIM_CancelAccelerometerZCallback: - HALSIM_GetAccelerometerZ: - HALSIM_SetAccelerometerZ: - HALSIM_RegisterAccelerometerAllCallbacks: - ignore: true diff --git a/subprojects/robotpy-hal/semiwrap/simulation/AddressableLEDData.yml b/subprojects/robotpy-hal/semiwrap/simulation/AddressableLEDData.yml deleted file mode 100644 index d95a23f61..000000000 --- a/subprojects/robotpy-hal/semiwrap/simulation/AddressableLEDData.yml +++ /dev/null @@ -1,33 +0,0 @@ -strip_prefixes: -- HALSIM_ - -functions: - HALSIM_FindAddressableLEDForChannel: - HALSIM_ResetAddressableLEDData: - HALSIM_RegisterAddressableLEDInitializedCallback: - ignore: true - HALSIM_CancelAddressableLEDInitializedCallback: - HALSIM_GetAddressableLEDInitialized: - HALSIM_SetAddressableLEDInitialized: - HALSIM_RegisterAddressableLEDOutputPortCallback: - ignore: true - HALSIM_CancelAddressableLEDOutputPortCallback: - HALSIM_GetAddressableLEDOutputPort: - HALSIM_SetAddressableLEDOutputPort: - HALSIM_RegisterAddressableLEDLengthCallback: - ignore: true - HALSIM_CancelAddressableLEDLengthCallback: - HALSIM_GetAddressableLEDLength: - HALSIM_SetAddressableLEDLength: - HALSIM_RegisterAddressableLEDRunningCallback: - ignore: true - HALSIM_CancelAddressableLEDRunningCallback: - HALSIM_GetAddressableLEDRunning: - HALSIM_SetAddressableLEDRunning: - HALSIM_RegisterAddressableLEDDataCallback: - ignore: true - HALSIM_CancelAddressableLEDDataCallback: - HALSIM_GetAddressableLEDData: - HALSIM_SetAddressableLEDData: - HALSIM_RegisterAddressableLEDAllCallbacks: - ignore: true diff --git a/subprojects/robotpy-hal/semiwrap/simulation/AnalogGyroData.yml b/subprojects/robotpy-hal/semiwrap/simulation/AnalogGyroData.yml deleted file mode 100644 index 0ad7d8290..000000000 --- a/subprojects/robotpy-hal/semiwrap/simulation/AnalogGyroData.yml +++ /dev/null @@ -1,22 +0,0 @@ -strip_prefixes: -- HALSIM_ - -functions: - HALSIM_ResetAnalogGyroData: - HALSIM_RegisterAnalogGyroAngleCallback: - ignore: true - HALSIM_CancelAnalogGyroAngleCallback: - HALSIM_GetAnalogGyroAngle: - HALSIM_SetAnalogGyroAngle: - HALSIM_RegisterAnalogGyroRateCallback: - ignore: true - HALSIM_CancelAnalogGyroRateCallback: - HALSIM_GetAnalogGyroRate: - HALSIM_SetAnalogGyroRate: - HALSIM_RegisterAnalogGyroInitializedCallback: - ignore: true - HALSIM_CancelAnalogGyroInitializedCallback: - HALSIM_GetAnalogGyroInitialized: - HALSIM_SetAnalogGyroInitialized: - HALSIM_RegisterAnalogGyroAllCallbacks: - ignore: true diff --git a/subprojects/robotpy-hal/semiwrap/simulation/AnalogInData.yml b/subprojects/robotpy-hal/semiwrap/simulation/AnalogInData.yml deleted file mode 100644 index e00b8e9ff..000000000 --- a/subprojects/robotpy-hal/semiwrap/simulation/AnalogInData.yml +++ /dev/null @@ -1,53 +0,0 @@ -strip_prefixes: -- HALSIM_ - -functions: - HALSIM_ResetAnalogInData: - HALSIM_RegisterAnalogInInitializedCallback: - ignore: true - HALSIM_CancelAnalogInInitializedCallback: - HALSIM_GetAnalogInInitialized: - HALSIM_SetAnalogInInitialized: - HALSIM_GetAnalogInSimDevice: - HALSIM_RegisterAnalogInAverageBitsCallback: - ignore: true - HALSIM_CancelAnalogInAverageBitsCallback: - HALSIM_GetAnalogInAverageBits: - HALSIM_SetAnalogInAverageBits: - HALSIM_RegisterAnalogInOversampleBitsCallback: - ignore: true - HALSIM_CancelAnalogInOversampleBitsCallback: - HALSIM_GetAnalogInOversampleBits: - HALSIM_SetAnalogInOversampleBits: - HALSIM_RegisterAnalogInVoltageCallback: - ignore: true - HALSIM_CancelAnalogInVoltageCallback: - HALSIM_GetAnalogInVoltage: - HALSIM_SetAnalogInVoltage: - HALSIM_RegisterAnalogInAccumulatorInitializedCallback: - ignore: true - HALSIM_CancelAnalogInAccumulatorInitializedCallback: - HALSIM_GetAnalogInAccumulatorInitialized: - HALSIM_SetAnalogInAccumulatorInitialized: - HALSIM_RegisterAnalogInAccumulatorValueCallback: - ignore: true - HALSIM_CancelAnalogInAccumulatorValueCallback: - HALSIM_GetAnalogInAccumulatorValue: - HALSIM_SetAnalogInAccumulatorValue: - HALSIM_RegisterAnalogInAccumulatorCountCallback: - ignore: true - HALSIM_CancelAnalogInAccumulatorCountCallback: - HALSIM_GetAnalogInAccumulatorCount: - HALSIM_SetAnalogInAccumulatorCount: - HALSIM_RegisterAnalogInAccumulatorCenterCallback: - ignore: true - HALSIM_CancelAnalogInAccumulatorCenterCallback: - HALSIM_GetAnalogInAccumulatorCenter: - HALSIM_SetAnalogInAccumulatorCenter: - HALSIM_RegisterAnalogInAccumulatorDeadbandCallback: - ignore: true - HALSIM_CancelAnalogInAccumulatorDeadbandCallback: - HALSIM_GetAnalogInAccumulatorDeadband: - HALSIM_SetAnalogInAccumulatorDeadband: - HALSIM_RegisterAnalogInAllCallbacks: - ignore: true diff --git a/subprojects/robotpy-hal/semiwrap/simulation/AnalogOutData.yml b/subprojects/robotpy-hal/semiwrap/simulation/AnalogOutData.yml deleted file mode 100644 index 3020e8535..000000000 --- a/subprojects/robotpy-hal/semiwrap/simulation/AnalogOutData.yml +++ /dev/null @@ -1,17 +0,0 @@ -strip_prefixes: -- HALSIM_ - -functions: - HALSIM_ResetAnalogOutData: - HALSIM_RegisterAnalogOutVoltageCallback: - ignore: true - HALSIM_CancelAnalogOutVoltageCallback: - HALSIM_GetAnalogOutVoltage: - HALSIM_SetAnalogOutVoltage: - HALSIM_RegisterAnalogOutInitializedCallback: - ignore: true - HALSIM_CancelAnalogOutInitializedCallback: - HALSIM_GetAnalogOutInitialized: - HALSIM_SetAnalogOutInitialized: - HALSIM_RegisterAnalogOutAllCallbacks: - ignore: true diff --git a/subprojects/robotpy-hal/semiwrap/simulation/AnalogTriggerData.yml b/subprojects/robotpy-hal/semiwrap/simulation/AnalogTriggerData.yml deleted file mode 100644 index ab72b6edc..000000000 --- a/subprojects/robotpy-hal/semiwrap/simulation/AnalogTriggerData.yml +++ /dev/null @@ -1,30 +0,0 @@ -strip_prefixes: -- HALSIM_ - -enums: - HALSIM_AnalogTriggerMode: -functions: - HALSIM_FindAnalogTriggerForChannel: - HALSIM_ResetAnalogTriggerData: - HALSIM_RegisterAnalogTriggerInitializedCallback: - ignore: true - HALSIM_CancelAnalogTriggerInitializedCallback: - HALSIM_GetAnalogTriggerInitialized: - HALSIM_SetAnalogTriggerInitialized: - HALSIM_RegisterAnalogTriggerTriggerLowerBoundCallback: - ignore: true - HALSIM_CancelAnalogTriggerTriggerLowerBoundCallback: - HALSIM_GetAnalogTriggerTriggerLowerBound: - HALSIM_SetAnalogTriggerTriggerLowerBound: - HALSIM_RegisterAnalogTriggerTriggerUpperBoundCallback: - ignore: true - HALSIM_CancelAnalogTriggerTriggerUpperBoundCallback: - HALSIM_GetAnalogTriggerTriggerUpperBound: - HALSIM_SetAnalogTriggerTriggerUpperBound: - HALSIM_RegisterAnalogTriggerTriggerModeCallback: - ignore: true - HALSIM_CancelAnalogTriggerTriggerModeCallback: - HALSIM_GetAnalogTriggerTriggerMode: - HALSIM_SetAnalogTriggerTriggerMode: - HALSIM_RegisterAnalogTriggerAllCallbacks: - ignore: true diff --git a/subprojects/robotpy-hal/semiwrap/simulation/CTREPCMData.yml b/subprojects/robotpy-hal/semiwrap/simulation/CTREPCMData.yml deleted file mode 100644 index 10c803937..000000000 --- a/subprojects/robotpy-hal/semiwrap/simulation/CTREPCMData.yml +++ /dev/null @@ -1,47 +0,0 @@ -strip_prefixes: -- HALSIM_ - -functions: - HALSIM_ResetCTREPCMData: - HALSIM_RegisterCTREPCMInitializedCallback: - ignore: true - HALSIM_CancelCTREPCMInitializedCallback: - ignore: true - HALSIM_GetCTREPCMInitialized: - HALSIM_SetCTREPCMInitialized: - HALSIM_RegisterCTREPCMSolenoidOutputCallback: - ignore: true - HALSIM_CancelCTREPCMSolenoidOutputCallback: - ignore: true - HALSIM_GetCTREPCMSolenoidOutput: - HALSIM_SetCTREPCMSolenoidOutput: - HALSIM_RegisterCTREPCMCompressorOnCallback: - ignore: true - HALSIM_CancelCTREPCMCompressorOnCallback: - ignore: true - HALSIM_GetCTREPCMCompressorOn: - HALSIM_SetCTREPCMCompressorOn: - HALSIM_RegisterCTREPCMClosedLoopEnabledCallback: - ignore: true - HALSIM_CancelCTREPCMClosedLoopEnabledCallback: - ignore: true - HALSIM_GetCTREPCMClosedLoopEnabled: - HALSIM_SetCTREPCMClosedLoopEnabled: - HALSIM_RegisterCTREPCMPressureSwitchCallback: - ignore: true - HALSIM_CancelCTREPCMPressureSwitchCallback: - ignore: true - HALSIM_GetCTREPCMPressureSwitch: - HALSIM_SetCTREPCMPressureSwitch: - HALSIM_RegisterCTREPCMCompressorCurrentCallback: - ignore: true - HALSIM_CancelCTREPCMCompressorCurrentCallback: - ignore: true - HALSIM_GetCTREPCMCompressorCurrent: - HALSIM_SetCTREPCMCompressorCurrent: - HALSIM_GetCTREPCMAllSolenoids: - HALSIM_SetCTREPCMAllSolenoids: - HALSIM_RegisterCTREPCMAllNonSolenoidCallbacks: - ignore: true - HALSIM_RegisterCTREPCMAllSolenoidCallbacks: - ignore: true diff --git a/subprojects/robotpy-hal/semiwrap/simulation/DIOData.yml b/subprojects/robotpy-hal/semiwrap/simulation/DIOData.yml deleted file mode 100644 index 54829bc36..000000000 --- a/subprojects/robotpy-hal/semiwrap/simulation/DIOData.yml +++ /dev/null @@ -1,33 +0,0 @@ -strip_prefixes: -- HALSIM_ - -functions: - HALSIM_ResetDIOData: - HALSIM_RegisterDIOInitializedCallback: - ignore: true - HALSIM_CancelDIOInitializedCallback: - HALSIM_GetDIOInitialized: - HALSIM_SetDIOInitialized: - HALSIM_GetDIOSimDevice: - HALSIM_RegisterDIOValueCallback: - ignore: true - HALSIM_CancelDIOValueCallback: - HALSIM_GetDIOValue: - HALSIM_SetDIOValue: - HALSIM_RegisterDIOPulseLengthCallback: - ignore: true - HALSIM_CancelDIOPulseLengthCallback: - HALSIM_GetDIOPulseLength: - HALSIM_SetDIOPulseLength: - HALSIM_RegisterDIOIsInputCallback: - ignore: true - HALSIM_CancelDIOIsInputCallback: - HALSIM_GetDIOIsInput: - HALSIM_SetDIOIsInput: - HALSIM_RegisterDIOFilterIndexCallback: - ignore: true - HALSIM_CancelDIOFilterIndexCallback: - HALSIM_GetDIOFilterIndex: - HALSIM_SetDIOFilterIndex: - HALSIM_RegisterDIOAllCallbacks: - ignore: true diff --git a/subprojects/robotpy-hal/semiwrap/simulation/DigitalPWMData.yml b/subprojects/robotpy-hal/semiwrap/simulation/DigitalPWMData.yml deleted file mode 100644 index 0a32ac222..000000000 --- a/subprojects/robotpy-hal/semiwrap/simulation/DigitalPWMData.yml +++ /dev/null @@ -1,23 +0,0 @@ -strip_prefixes: -- HALSIM_ - -functions: - HALSIM_FindDigitalPWMForChannel: - HALSIM_ResetDigitalPWMData: - HALSIM_RegisterDigitalPWMInitializedCallback: - ignore: true - HALSIM_CancelDigitalPWMInitializedCallback: - HALSIM_GetDigitalPWMInitialized: - HALSIM_SetDigitalPWMInitialized: - HALSIM_RegisterDigitalPWMDutyCycleCallback: - ignore: true - HALSIM_CancelDigitalPWMDutyCycleCallback: - HALSIM_GetDigitalPWMDutyCycle: - HALSIM_SetDigitalPWMDutyCycle: - HALSIM_RegisterDigitalPWMPinCallback: - ignore: true - HALSIM_CancelDigitalPWMPinCallback: - HALSIM_GetDigitalPWMPin: - HALSIM_SetDigitalPWMPin: - HALSIM_RegisterDigitalPWMAllCallbacks: - ignore: true diff --git a/subprojects/robotpy-hal/semiwrap/simulation/DutyCycleData.yml b/subprojects/robotpy-hal/semiwrap/simulation/DutyCycleData.yml deleted file mode 100644 index d8c694b4f..000000000 --- a/subprojects/robotpy-hal/semiwrap/simulation/DutyCycleData.yml +++ /dev/null @@ -1,25 +0,0 @@ -strip_prefixes: -- HALSIM_ - -functions: - HALSIM_FindDutyCycleForChannel: - HALSIM_ResetDutyCycleData: - HALSIM_GetDutyCycleDigitalChannel: - HALSIM_RegisterDutyCycleInitializedCallback: - ignore: true - HALSIM_CancelDutyCycleInitializedCallback: - HALSIM_GetDutyCycleInitialized: - HALSIM_SetDutyCycleInitialized: - HALSIM_GetDutyCycleSimDevice: - HALSIM_RegisterDutyCycleOutputCallback: - ignore: true - HALSIM_CancelDutyCycleOutputCallback: - HALSIM_GetDutyCycleOutput: - HALSIM_SetDutyCycleOutput: - HALSIM_RegisterDutyCycleFrequencyCallback: - ignore: true - HALSIM_CancelDutyCycleFrequencyCallback: - HALSIM_GetDutyCycleFrequency: - HALSIM_SetDutyCycleFrequency: - HALSIM_RegisterDutyCycleAllCallbacks: - ignore: true diff --git a/subprojects/robotpy-hal/semiwrap/simulation/EncoderData.yml b/subprojects/robotpy-hal/semiwrap/simulation/EncoderData.yml deleted file mode 100644 index 94aba57c6..000000000 --- a/subprojects/robotpy-hal/semiwrap/simulation/EncoderData.yml +++ /dev/null @@ -1,60 +0,0 @@ -strip_prefixes: -- HALSIM_ - -functions: - HALSIM_FindEncoderForChannel: - HALSIM_ResetEncoderData: - HALSIM_GetEncoderDigitalChannelA: - HALSIM_GetEncoderDigitalChannelB: - HALSIM_RegisterEncoderInitializedCallback: - ignore: true - HALSIM_CancelEncoderInitializedCallback: - HALSIM_GetEncoderInitialized: - HALSIM_SetEncoderInitialized: - HALSIM_GetEncoderSimDevice: - HALSIM_RegisterEncoderCountCallback: - ignore: true - HALSIM_CancelEncoderCountCallback: - HALSIM_GetEncoderCount: - HALSIM_SetEncoderCount: - HALSIM_RegisterEncoderPeriodCallback: - ignore: true - HALSIM_CancelEncoderPeriodCallback: - HALSIM_GetEncoderPeriod: - HALSIM_SetEncoderPeriod: - HALSIM_RegisterEncoderResetCallback: - ignore: true - HALSIM_CancelEncoderResetCallback: - HALSIM_GetEncoderReset: - HALSIM_SetEncoderReset: - HALSIM_RegisterEncoderMaxPeriodCallback: - ignore: true - HALSIM_CancelEncoderMaxPeriodCallback: - HALSIM_GetEncoderMaxPeriod: - HALSIM_SetEncoderMaxPeriod: - HALSIM_RegisterEncoderDirectionCallback: - ignore: true - HALSIM_CancelEncoderDirectionCallback: - HALSIM_GetEncoderDirection: - HALSIM_SetEncoderDirection: - HALSIM_RegisterEncoderReverseDirectionCallback: - ignore: true - HALSIM_CancelEncoderReverseDirectionCallback: - HALSIM_GetEncoderReverseDirection: - HALSIM_SetEncoderReverseDirection: - HALSIM_RegisterEncoderSamplesToAverageCallback: - ignore: true - HALSIM_CancelEncoderSamplesToAverageCallback: - HALSIM_GetEncoderSamplesToAverage: - HALSIM_SetEncoderSamplesToAverage: - HALSIM_RegisterEncoderDistancePerPulseCallback: - ignore: true - HALSIM_CancelEncoderDistancePerPulseCallback: - HALSIM_GetEncoderDistancePerPulse: - HALSIM_SetEncoderDistancePerPulse: - HALSIM_RegisterEncoderAllCallbacks: - ignore: true - HALSIM_SetEncoderDistance: - HALSIM_GetEncoderDistance: - HALSIM_SetEncoderRate: - HALSIM_GetEncoderRate: diff --git a/subprojects/robotpy-hal/semiwrap/simulation/PWMData.yml b/subprojects/robotpy-hal/semiwrap/simulation/PWMData.yml deleted file mode 100644 index 48d730a17..000000000 --- a/subprojects/robotpy-hal/semiwrap/simulation/PWMData.yml +++ /dev/null @@ -1,38 +0,0 @@ -strip_prefixes: -- HALSIM_ - -functions: - HALSIM_ResetPWMData: - HALSIM_RegisterPWMInitializedCallback: - ignore: true - HALSIM_CancelPWMInitializedCallback: - HALSIM_GetPWMInitialized: - HALSIM_SetPWMInitialized: - HALSIM_RegisterPWMPulseMicrosecondCallback: - ignore: true - HALSIM_CancelPWMPulseMicrosecondCallback: - ignore: true - HALSIM_GetPWMPulseMicrosecond: - HALSIM_SetPWMPulseMicrosecond: - HALSIM_RegisterPWMSpeedCallback: - ignore: true - HALSIM_CancelPWMSpeedCallback: - HALSIM_GetPWMSpeed: - HALSIM_SetPWMSpeed: - HALSIM_RegisterPWMPositionCallback: - ignore: true - HALSIM_CancelPWMPositionCallback: - HALSIM_GetPWMPosition: - HALSIM_SetPWMPosition: - HALSIM_RegisterPWMPeriodScaleCallback: - ignore: true - HALSIM_CancelPWMPeriodScaleCallback: - HALSIM_GetPWMPeriodScale: - HALSIM_SetPWMPeriodScale: - HALSIM_RegisterPWMZeroLatchCallback: - ignore: true - HALSIM_CancelPWMZeroLatchCallback: - HALSIM_GetPWMZeroLatch: - HALSIM_SetPWMZeroLatch: - HALSIM_RegisterPWMAllCallbacks: - ignore: true diff --git a/subprojects/robotpy-hal/semiwrap/simulation/PowerDistributionData.yml b/subprojects/robotpy-hal/semiwrap/simulation/PowerDistributionData.yml deleted file mode 100644 index 5521218bd..000000000 --- a/subprojects/robotpy-hal/semiwrap/simulation/PowerDistributionData.yml +++ /dev/null @@ -1,29 +0,0 @@ -strip_prefixes: -- HALSIM_ - -functions: - HALSIM_ResetPowerDistributionData: - HALSIM_RegisterPowerDistributionInitializedCallback: - ignore: true - HALSIM_CancelPowerDistributionInitializedCallback: - HALSIM_GetPowerDistributionInitialized: - HALSIM_SetPowerDistributionInitialized: - HALSIM_RegisterPowerDistributionTemperatureCallback: - ignore: true - HALSIM_CancelPowerDistributionTemperatureCallback: - HALSIM_GetPowerDistributionTemperature: - HALSIM_SetPowerDistributionTemperature: - HALSIM_RegisterPowerDistributionVoltageCallback: - ignore: true - HALSIM_CancelPowerDistributionVoltageCallback: - HALSIM_GetPowerDistributionVoltage: - HALSIM_SetPowerDistributionVoltage: - HALSIM_RegisterPowerDistributionCurrentCallback: - ignore: true - HALSIM_CancelPowerDistributionCurrentCallback: - HALSIM_GetPowerDistributionCurrent: - HALSIM_SetPowerDistributionCurrent: - HALSIM_GetPowerDistributionAllCurrents: - HALSIM_SetPowerDistributionAllCurrents: - HALSIM_RegisterPowerDistributionAllNonCurrentCallbacks: - ignore: true diff --git a/subprojects/robotpy-hal/semiwrap/simulation/REVPHData.yml b/subprojects/robotpy-hal/semiwrap/simulation/REVPHData.yml deleted file mode 100644 index acaebf35e..000000000 --- a/subprojects/robotpy-hal/semiwrap/simulation/REVPHData.yml +++ /dev/null @@ -1,41 +0,0 @@ -strip_prefixes: -- HALSIM_ - -functions: - HALSIM_ResetREVPHData: - HALSIM_RegisterREVPHInitializedCallback: - ignore: true - HALSIM_CancelREVPHInitializedCallback: - HALSIM_GetREVPHInitialized: - HALSIM_SetREVPHInitialized: - HALSIM_RegisterREVPHSolenoidOutputCallback: - ignore: true - HALSIM_CancelREVPHSolenoidOutputCallback: - HALSIM_GetREVPHSolenoidOutput: - HALSIM_SetREVPHSolenoidOutput: - HALSIM_RegisterREVPHCompressorOnCallback: - ignore: true - HALSIM_CancelREVPHCompressorOnCallback: - HALSIM_GetREVPHCompressorOn: - HALSIM_SetREVPHCompressorOn: - HALSIM_RegisterREVPHCompressorConfigTypeCallback: - ignore: true - HALSIM_CancelREVPHCompressorConfigTypeCallback: - HALSIM_GetREVPHCompressorConfigType: - HALSIM_SetREVPHCompressorConfigType: - HALSIM_RegisterREVPHPressureSwitchCallback: - ignore: true - HALSIM_CancelREVPHPressureSwitchCallback: - HALSIM_GetREVPHPressureSwitch: - HALSIM_SetREVPHPressureSwitch: - HALSIM_RegisterREVPHCompressorCurrentCallback: - ignore: true - HALSIM_CancelREVPHCompressorCurrentCallback: - HALSIM_GetREVPHCompressorCurrent: - HALSIM_SetREVPHCompressorCurrent: - HALSIM_GetREVPHAllSolenoids: - HALSIM_SetREVPHAllSolenoids: - HALSIM_RegisterREVPHAllNonSolenoidCallbacks: - ignore: true - HALSIM_RegisterREVPHAllSolenoidCallbacks: - ignore: true diff --git a/subprojects/robotpy-hal/semiwrap/simulation/RelayData.yml b/subprojects/robotpy-hal/semiwrap/simulation/RelayData.yml deleted file mode 100644 index 21ee0fc93..000000000 --- a/subprojects/robotpy-hal/semiwrap/simulation/RelayData.yml +++ /dev/null @@ -1,27 +0,0 @@ -strip_prefixes: -- HALSIM_ - -functions: - HALSIM_ResetRelayData: - HALSIM_RegisterRelayInitializedForwardCallback: - ignore: true - HALSIM_CancelRelayInitializedForwardCallback: - HALSIM_GetRelayInitializedForward: - HALSIM_SetRelayInitializedForward: - HALSIM_RegisterRelayInitializedReverseCallback: - ignore: true - HALSIM_CancelRelayInitializedReverseCallback: - HALSIM_GetRelayInitializedReverse: - HALSIM_SetRelayInitializedReverse: - HALSIM_RegisterRelayForwardCallback: - ignore: true - HALSIM_CancelRelayForwardCallback: - HALSIM_GetRelayForward: - HALSIM_SetRelayForward: - HALSIM_RegisterRelayReverseCallback: - ignore: true - HALSIM_CancelRelayReverseCallback: - HALSIM_GetRelayReverse: - HALSIM_SetRelayReverse: - HALSIM_RegisterRelayAllCallbacks: - ignore: true diff --git a/subprojects/robotpy-hal/semiwrap/simulation/RoboRioData.yml b/subprojects/robotpy-hal/semiwrap/simulation/RoboRioData.yml deleted file mode 100644 index 77b70eb69..000000000 --- a/subprojects/robotpy-hal/semiwrap/simulation/RoboRioData.yml +++ /dev/null @@ -1,144 +0,0 @@ -strip_prefixes: -- HALSIM_ - -functions: - HALSIM_ResetRoboRioData: - HALSIM_RegisterRoboRioFPGAButtonCallback: - ignore: true - HALSIM_CancelRoboRioFPGAButtonCallback: - HALSIM_GetRoboRioFPGAButton: - HALSIM_SetRoboRioFPGAButton: - HALSIM_RegisterRoboRioVInVoltageCallback: - ignore: true - HALSIM_CancelRoboRioVInVoltageCallback: - HALSIM_GetRoboRioVInVoltage: - HALSIM_SetRoboRioVInVoltage: - HALSIM_RegisterRoboRioVInCurrentCallback: - ignore: true - HALSIM_CancelRoboRioVInCurrentCallback: - HALSIM_GetRoboRioVInCurrent: - HALSIM_SetRoboRioVInCurrent: - HALSIM_RegisterRoboRioUserVoltage6VCallback: - ignore: true - HALSIM_CancelRoboRioUserVoltage6VCallback: - HALSIM_GetRoboRioUserVoltage6V: - HALSIM_SetRoboRioUserVoltage6V: - HALSIM_RegisterRoboRioUserCurrent6VCallback: - ignore: true - HALSIM_CancelRoboRioUserCurrent6VCallback: - HALSIM_GetRoboRioUserCurrent6V: - HALSIM_SetRoboRioUserCurrent6V: - HALSIM_RegisterRoboRioUserActive6VCallback: - ignore: true - HALSIM_CancelRoboRioUserActive6VCallback: - HALSIM_GetRoboRioUserActive6V: - HALSIM_SetRoboRioUserActive6V: - HALSIM_RegisterRoboRioUserVoltage5VCallback: - ignore: true - HALSIM_CancelRoboRioUserVoltage5VCallback: - HALSIM_GetRoboRioUserVoltage5V: - HALSIM_SetRoboRioUserVoltage5V: - HALSIM_RegisterRoboRioUserCurrent5VCallback: - ignore: true - HALSIM_CancelRoboRioUserCurrent5VCallback: - HALSIM_GetRoboRioUserCurrent5V: - HALSIM_SetRoboRioUserCurrent5V: - HALSIM_RegisterRoboRioUserActive5VCallback: - ignore: true - HALSIM_CancelRoboRioUserActive5VCallback: - HALSIM_GetRoboRioUserActive5V: - HALSIM_SetRoboRioUserActive5V: - HALSIM_RegisterRoboRioUserVoltage3V3Callback: - ignore: true - HALSIM_CancelRoboRioUserVoltage3V3Callback: - HALSIM_GetRoboRioUserVoltage3V3: - HALSIM_SetRoboRioUserVoltage3V3: - HALSIM_RegisterRoboRioUserCurrent3V3Callback: - ignore: true - HALSIM_CancelRoboRioUserCurrent3V3Callback: - HALSIM_GetRoboRioUserCurrent3V3: - HALSIM_SetRoboRioUserCurrent3V3: - HALSIM_RegisterRoboRioUserActive3V3Callback: - ignore: true - HALSIM_CancelRoboRioUserActive3V3Callback: - HALSIM_GetRoboRioUserActive3V3: - HALSIM_SetRoboRioUserActive3V3: - HALSIM_RegisterRoboRioUserFaults6VCallback: - ignore: true - HALSIM_CancelRoboRioUserFaults6VCallback: - HALSIM_GetRoboRioUserFaults6V: - HALSIM_SetRoboRioUserFaults6V: - HALSIM_RegisterRoboRioUserFaults5VCallback: - ignore: true - HALSIM_CancelRoboRioUserFaults5VCallback: - HALSIM_GetRoboRioUserFaults5V: - HALSIM_SetRoboRioUserFaults5V: - HALSIM_RegisterRoboRioUserFaults3V3Callback: - ignore: true - HALSIM_CancelRoboRioUserFaults3V3Callback: - HALSIM_GetRoboRioUserFaults3V3: - HALSIM_SetRoboRioUserFaults3V3: - HALSIM_RegisterRoboRioBrownoutVoltageCallback: - ignore: true - HALSIM_CancelRoboRioBrownoutVoltageCallback: - HALSIM_GetRoboRioBrownoutVoltage: - HALSIM_SetRoboRioBrownoutVoltage: - HALSIM_RegisterRoboRioTeamNumberCallback: - ignore: true - HALSIM_CancelRoboRioTeamNumberCallback: - HALSIM_GetRoboRioTeamNumber: - HALSIM_SetRoboRioTeamNumber: - HALSIM_RegisterRoboRioSerialNumberCallback: - ignore: true - HALSIM_CancelRoboRioSerialNumberCallback: - HALSIM_GetRoboRioSerialNumber: - param_override: - serialNumber: - ignore: true - cpp_code: | - []() { - WPI_String s; - HALSIM_GetRoboRioSerialNumber(&s); - std::string ss(wpi::to_string_view(&s)); - WPI_FreeString(&s); - return ss; - } - HALSIM_SetRoboRioSerialNumber: - cpp_code: | - [](std::string_view sv) { - auto s = wpi::make_string(sv); - HALSIM_SetRoboRioSerialNumber(&s); - } - HALSIM_RegisterRoboRioCommentsCallback: - ignore: true - HALSIM_CancelRoboRioCommentsCallback: - HALSIM_GetRoboRioComments: - param_override: - comments: - ignore: true - cpp_code: | - []() { - WPI_String s; - HALSIM_GetRoboRioComments(&s); - std::string ss(wpi::to_string_view(&s)); - WPI_FreeString(&s); - return ss; - } - HALSIM_SetRoboRioComments: - cpp_code: | - [](std::string_view sv) { - auto s = wpi::make_string(sv); - HALSIM_SetRoboRioComments(&s); - } - HALSIM_RegisterRoboRioAllCallbacks: - ignore: true - HALSIM_RegisterRoboRioCPUTempCallback: - ignore: true - HALSIM_CancelRoboRioCPUTempCallback: - HALSIM_GetRoboRioCPUTemp: - HALSIM_SetRoboRioCPUTemp: - HALSIM_RegisterRoboRioRadioLEDStateCallback: - ignore: true - HALSIM_CancelRoboRioRadioLEDStateCallback: - HALSIM_GetRoboRioRadioLEDState: - HALSIM_SetRoboRioRadioLEDState: diff --git a/subprojects/robotpy-hal/semiwrap/simulation/SPIAccelerometerData.yml b/subprojects/robotpy-hal/semiwrap/simulation/SPIAccelerometerData.yml deleted file mode 100644 index f7ea44989..000000000 --- a/subprojects/robotpy-hal/semiwrap/simulation/SPIAccelerometerData.yml +++ /dev/null @@ -1,32 +0,0 @@ -strip_prefixes: -- HALSIM_ - -functions: - HALSIM_ResetSPIAccelerometerData: - HALSIM_RegisterSPIAccelerometerActiveCallback: - ignore: true - HALSIM_CancelSPIAccelerometerActiveCallback: - HALSIM_GetSPIAccelerometerActive: - HALSIM_SetSPIAccelerometerActive: - HALSIM_RegisterSPIAccelerometerRangeCallback: - ignore: true - HALSIM_CancelSPIAccelerometerRangeCallback: - HALSIM_GetSPIAccelerometerRange: - HALSIM_SetSPIAccelerometerRange: - HALSIM_RegisterSPIAccelerometerXCallback: - ignore: true - HALSIM_CancelSPIAccelerometerXCallback: - HALSIM_GetSPIAccelerometerX: - HALSIM_SetSPIAccelerometerX: - HALSIM_RegisterSPIAccelerometerYCallback: - ignore: true - HALSIM_CancelSPIAccelerometerYCallback: - HALSIM_GetSPIAccelerometerY: - HALSIM_SetSPIAccelerometerY: - HALSIM_RegisterSPIAccelerometerZCallback: - ignore: true - HALSIM_CancelSPIAccelerometerZCallback: - HALSIM_GetSPIAccelerometerZ: - HALSIM_SetSPIAccelerometerZ: - HALSIM_RegisterSPIAccelerometerAllCallbacks: - ignore: true diff --git a/subprojects/robotpy-wpilib/semiwrap/AddressableLED.yml b/subprojects/robotpy-wpilib/semiwrap/AddressableLED.yml index d98cbeffd..c7ac4d19b 100644 --- a/subprojects/robotpy-wpilib/semiwrap/AddressableLED.yml +++ b/subprojects/robotpy-wpilib/semiwrap/AddressableLED.yml @@ -21,8 +21,8 @@ classes: ColorOrder: frc::AddressableLED::LEDData: force_no_trampoline: true - base_qualnames: - HAL_AddressableLEDData: ::HAL_AddressableLEDData + ignored_bases: + - HAL_AddressableLEDData methods: LEDData: overloads: @@ -41,4 +41,11 @@ classes: overloads: const Color&: const Color8Bit&: - + inline_code: | + .def_readwrite("r", &frc::AddressableLED::LEDData::r) + .def_readwrite("g", &frc::AddressableLED::LEDData::g) + .def_readwrite("b", &frc::AddressableLED::LEDData::b) + .def("__eq__", [](frc::AddressableLED::LEDData &self, frc::AddressableLED::LEDData &other) { + return self.r == other.r && self.g == other.g && self.b == other.b; + }) + ; diff --git a/subprojects/robotpy-wpilib/semiwrap/simulation/AddressableLEDSim.yml b/subprojects/robotpy-wpilib/semiwrap/simulation/AddressableLEDSim.yml index 8c33cefe7..a717a7104 100644 --- a/subprojects/robotpy-wpilib/semiwrap/simulation/AddressableLEDSim.yml +++ b/subprojects/robotpy-wpilib/semiwrap/simulation/AddressableLEDSim.yml @@ -5,6 +5,8 @@ classes: frc::sim::AddressableLEDSim: force_type_casters: - std::function + - std::span + - std::vector methods: AddressableLEDSim: overloads: @@ -26,4 +28,21 @@ classes: SetRunning: RegisterDataCallback: GetData: + param_override: + data: + ignore: true + cpp_code: | + [](frc::sim::AddressableLEDSim &self) { + int len = self.GetData(nullptr); + std::vector data(len); + self.GetData(data.data()); + return data; + } SetData: + param_override: + length: + ignore: true + cpp_code: | + [](frc::sim::AddressableLEDSim &self, std::span &data) { + self.SetData(data.data(), data.size()); + } diff --git a/subprojects/robotpy-wpilib/tests/test_wpilib_simulation.py b/subprojects/robotpy-wpilib/tests/test_wpilib_simulation.py index 561b2bb05..f615e3511 100644 --- a/subprojects/robotpy-wpilib/tests/test_wpilib_simulation.py +++ b/subprojects/robotpy-wpilib/tests/test_wpilib_simulation.py @@ -3,3 +3,23 @@ def test_wpilib_simulation(): pass + + +def test_addressableled_sim(): + sim = wpilib.simulation.AddressableLEDSim.createForIndex(0) + led = wpilib.AddressableLED(0) + assert not sim.getRunning() + led.start() + assert sim.getRunning() + + data = [ + wpilib.AddressableLED.LEDData(1, 2, 3), + wpilib.AddressableLED.LEDData(4, 5, 6), + ] + + led.setLength(len(data)) + led.setData(data) + assert sim.getData() == data + + led.stop() + assert not sim.getRunning()