void HAL_FreeAnalogOutputPort(HAL_AnalogOutputHandle analogOutputHandle) { // no status, so no need to check for a proper free. auto port = analogOutputHandles.Get(analogOutputHandle); if (port == nullptr) return; analogOutputHandles.Free(analogOutputHandle); SimAnalogOutData[port->channel].SetInitialized(false); }
void HAL_FreeSolenoidPort(HAL_SolenoidHandle solenoidPortHandle) { solenoidHandles.Free(solenoidPortHandle); }
void HAL_FreeRelayPort(HAL_RelayHandle relayPortHandle) { // no status, so no need to check for a proper free. relayHandles.Free(relayPortHandle); }