GPIO hardware interface.
More...
#include <TLx4966-hal.h>
◆ disable
Disables the GPIO (logic low)
- Returns
- TLx4966 error code
- Return values
-
TLx4966_OK | if success |
TLx4966_INTF_ERROR | if hardware interface error |
◆ disableInt
Disables hardware interrupt.
- Returns
- TLx4966 error code
- Return values
-
TLx4966_OK | if success |
TLx4966_INTF_ERROR | if hardware interface error |
◆ enable
Enables the GPIO (logic high)
- Returns
- TLx4966 error code
- Return values
-
TLx4966_OK | if success |
TLx4966_INTF_ERROR | if hardware interface error |
◆ enableInt
Enables hardware interrupt.
- Parameters
-
[in] | *cback | Function pointer to the interrupt callback function |
[in] | *fargs | Callback arguments |
- Returns
- TLx4966 error code
- Return values
-
TLx4966_OK | if success |
TLx4966_INTF_ERROR | if hardware interface error |
◆ init
Initialiazes the GPIO.
- Returns
- TLx4966 error code
- Return values
-
TLx4966_OK | if success |
TLx4966_INTF_ERROR | if hardware interface error |
◆ intEvent
Gets the latest interrupt event type.
- Returns
- TLx4966 interruption event
- Return values
-
TLx4966_INT_RISING_EDGE | if rising edge interrupt |
TLx4966_INT_FALLING_EDGE | if falling edge interrupt |
◆ read
Reads the GPIO voltage level.
- Returns
- TLx4966 GPIO voltage level
- Return values
-
TLx4966_GPIO_LOW | if voltage low |
TLx4966_GPIO_HIGH | if voltage high |
The documentation for this struct was generated from the following file:
- C:/Users/Enriquez/Documents/Arduino/libraries/tlx4966-direction-speed-sensor/src/TLx4966/TLx4966-hal.h