TLx4966 Direction Speed Sensor  1.1.1
C/C++ library of Infineons double Hall-effect direction and speed sensor TLx4966(K)/(G)/(L)/(V) family for magnetic sensing applications.
TLx4966_GPIO_t Struct Reference

GPIO hardware interface. More...

#include <TLx4966-hal.h>

Public Attributes

TLx4966_Error_t(* init )(void)
 Initialiazes the GPIO. More...
 
TLx4966_Error_t(* enableInt )(TLx4966_GPIO_IntCallback cback, void *fargs)
 Enables hardware interrupt. More...
 
TLx4966_Error_t(* disableInt )(void)
 Disables hardware interrupt. More...
 
TLx4966_IntEvent_t(* intEvent )(void)
 Gets the latest interrupt event type. More...
 
TLx4966_GPIOLevel_t(* read )(void)
 Reads the GPIO voltage level. More...
 
TLx4966_Error_t(* enable )(void)
 Enables the GPIO (logic high) More...
 
TLx4966_Error_t(* disable )(void)
 Disables the GPIO (logic low) More...
 

Detailed Description

GPIO hardware interface.

Member Data Documentation

◆ disable

TLx4966_Error_t(* TLx4966_GPIO_t::disable) (void)

Disables the GPIO (logic low)

Returns
TLx4966 error code
Return values
TLx4966_OKif success
TLx4966_INTF_ERRORif hardware interface error

◆ disableInt

TLx4966_Error_t(* TLx4966_GPIO_t::disableInt) (void)

Disables hardware interrupt.

Returns
TLx4966 error code
Return values
TLx4966_OKif success
TLx4966_INTF_ERRORif hardware interface error

◆ enable

TLx4966_Error_t(* TLx4966_GPIO_t::enable) (void)

Enables the GPIO (logic high)

Returns
TLx4966 error code
Return values
TLx4966_OKif success
TLx4966_INTF_ERRORif hardware interface error

◆ enableInt

TLx4966_Error_t(* TLx4966_GPIO_t::enableInt) (TLx4966_GPIO_IntCallback cback, void *fargs)

Enables hardware interrupt.

Parameters
[in]*cbackFunction pointer to the interrupt callback function
[in]*fargsCallback arguments
Returns
TLx4966 error code
Return values
TLx4966_OKif success
TLx4966_INTF_ERRORif hardware interface error

◆ init

TLx4966_Error_t(* TLx4966_GPIO_t::init) (void)

Initialiazes the GPIO.

Returns
TLx4966 error code
Return values
TLx4966_OKif success
TLx4966_INTF_ERRORif hardware interface error

◆ intEvent

TLx4966_IntEvent_t(* TLx4966_GPIO_t::intEvent) (void)

Gets the latest interrupt event type.

Returns
TLx4966 interruption event
Return values
TLx4966_INT_RISING_EDGEif rising edge interrupt
TLx4966_INT_FALLING_EDGEif falling edge interrupt

◆ read

TLx4966_GPIOLevel_t(* TLx4966_GPIO_t::read) (void)

Reads the GPIO voltage level.

Returns
TLx4966 GPIO voltage level
Return values
TLx4966_GPIO_LOWif voltage low
TLx4966_GPIO_HIGHif voltage high

The documentation for this struct was generated from the following file: