81 *pRegisterAddress |= (uint32_t)((uint32_t)1u << pin);
88 *pRegisterAddress &= ~(uint32_t)((uint32_t)1u << pin);
91 extern void IO_PinSet(
volatile uint32_t *pRegisterAddress, uint32_t pin) {
95 *pRegisterAddress |= (uint32_t)((uint32_t)1u << pin);
98 extern void IO_PinReset(
volatile uint32_t *pRegisterAddress, uint32_t pin) {
102 *pRegisterAddress &= ~(uint32_t)((uint32_t)1u << pin);
110 uint8_t pinState = (uint8_t)((*pRegisterAddress & ((uint32_t)1u << (pin))) >> pin);
113 if (pinState == 0u) {
122 #ifdef UNITY_UNIT_TEST
Assert macro implementation.
#define FAS_ASSERT(x)
Assertion macro that asserts that x is true.
Definition of foxBMS standard types.
#define NULL_PTR
Null pointer.
void IO_SetPinDirectionToOutput(volatile uint32_t *pRegisterAddress, uint32_t pin)
Set pin to output by writing in pin direction register.
void IO_SetPinDirectionToInput(volatile uint32_t *pRegisterAddress, uint32_t pin)
Set pin to input by writing in pin direction register.
void IO_PinSet(volatile uint32_t *pRegisterAddress, uint32_t pin)
Set pin by writing in pin output register.
void IO_PinReset(volatile uint32_t *pRegisterAddress, uint32_t pin)
Reset pin by writing in pin output register.
STD_PIN_STATE_e IO_PinGet(const volatile uint32_t *pRegisterAddress, uint32_t pin)
Get pin state.
Header for the driver for the IO module.
Headers for the driver for the MCU module.
#define MCU_LARGEST_PIN_NUMBER
largest pin number that exists in TMS570LC4357