rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
hw_layer
drivers
gpio
protected_gpio.h
Go to the documentation of this file.
1
#pragma once
2
3
struct
ProtectedGpioConfig
{
4
// Output config
5
brain_pin_e
Pin
;
6
7
// Sense config
8
adc_channel_e
SenseChannel
;
9
float
AmpsPerVolt
;
10
11
// Instantaneous trip current
12
float
MaximumAllowedCurrent
;
13
};
14
15
int
protectedGpio_add
(
brain_pin_e
base,
const
ProtectedGpioConfig
*
const
configs);
16
void
protectedGpio_check
(efitick_t nowNt);
Gpio
Gpio
Definition
rusefi_hw_enums.h:14
protectedGpio_add
int protectedGpio_add(brain_pin_e base, const ProtectedGpioConfig *const configs)
Definition
protected_gpio.cpp:141
protectedGpio_check
void protectedGpio_check(efitick_t nowNt)
Definition
protected_gpio.cpp:153
adc_channel_e
adc_channel_e
Definition
rusefi_hw_adc_enums.h:60
ProtectedGpioConfig
Definition
protected_gpio.h:3
ProtectedGpioConfig::MaximumAllowedCurrent
float MaximumAllowedCurrent
Definition
protected_gpio.h:12
ProtectedGpioConfig::Pin
brain_pin_e Pin
Definition
protected_gpio.h:5
ProtectedGpioConfig::AmpsPerVolt
float AmpsPerVolt
Definition
protected_gpio.h:9
ProtectedGpioConfig::SenseChannel
adc_channel_e SenseChannel
Definition
protected_gpio.h:8
Generated on Sat Sep 27 2025 00:10:06 for rusEFI by
1.9.8