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.
 
Loading...
Searching...
No Matches
Collaboration diagram for TLE4966K Shield2Go:

Functions

STATIC TLx4966_Error_t GPIO_Speed_Init ()
 
STATIC TLx4966_GPIOLevel_t GPIO_Speed_Read ()
 
STATIC TLx4966_Error_t GPIO_Dir_Init (void)
 
STATIC TLx4966_GPIOLevel_t GPIO_Dir_Read ()
 
STATIC TLx4966_Error_t Timer_Init ()
 
STATIC void Timer_Start ()
 
STATIC uint32_t Timer_Elapsed ()
 
STATIC void Timer_Stop ()
 
STATIC TLx4966_Error_t Timer_Delay (uint32_t timeout)
 

Variables

STATIC const int speedGPIO = 4
 
STATIC const int dirGPIO = 9
 
STATIC uint32_t curTime = 0
 
TLx4966_GPIO_t speed
 
TLx4966_GPIO_t direction
 
TLx4966_Timer_t TLx4966timer
 
TLx4966_HwIntf_t TLx4966_Shield2Go_poll
 
TLx4966_HwIntf_t TLx4966_Shield2Go_interrupt
 

Detailed Description

Function Documentation

◆ GPIO_Speed_Init()

STATIC TLx4966_Error_t GPIO_Speed_Init ( )

◆ GPIO_Speed_Read()

STATIC TLx4966_GPIOLevel_t GPIO_Speed_Read ( )

◆ GPIO_Dir_Init()

STATIC TLx4966_Error_t GPIO_Dir_Init ( void  )

◆ GPIO_Dir_Read()

STATIC TLx4966_GPIOLevel_t GPIO_Dir_Read ( )

◆ Timer_Init()

STATIC TLx4966_Error_t Timer_Init ( )

◆ Timer_Start()

STATIC void Timer_Start ( )

◆ Timer_Elapsed()

STATIC uint32_t Timer_Elapsed ( )

◆ Timer_Stop()

STATIC void Timer_Stop ( )

◆ Timer_Delay()

STATIC TLx4966_Error_t Timer_Delay ( uint32_t  timeout)

Variable Documentation

◆ speedGPIO

STATIC const int speedGPIO = 4

Pin connected to Q2

◆ dirGPIO

STATIC const int dirGPIO = 9

Pin connected to Q1

◆ curTime

STATIC uint32_t curTime = 0

Current time

◆ speed

Initial value:
=
{
NULL,
NULL,
NULL,
NULL,
NULL
}
STATIC TLx4966_GPIOLevel_t GPIO_Speed_Read()
Definition TLx4966-platf-ard.c:49
STATIC TLx4966_Error_t GPIO_Speed_Init()
Definition TLx4966-platf-ard.c:43

◆ direction

TLx4966_GPIO_t direction
Initial value:
=
{
NULL,
NULL,
NULL,
NULL,
NULL
}
STATIC TLx4966_GPIOLevel_t GPIO_Dir_Read()
Definition TLx4966-platf-ard.c:71
STATIC TLx4966_Error_t GPIO_Dir_Init(void)
Definition TLx4966-platf-ard.c:65

◆ TLx4966timer

TLx4966_Timer_t TLx4966timer
Initial value:
=
{
}
STATIC uint32_t Timer_Elapsed()
Definition TLx4966-platf-ard.c:97
STATIC void Timer_Start()
Definition TLx4966-platf-ard.c:92
STATIC TLx4966_Error_t Timer_Init()
Definition TLx4966-platf-ard.c:87
STATIC void Timer_Stop()
Definition TLx4966-platf-ard.c:102
STATIC TLx4966_Error_t Timer_Delay(uint32_t timeout)
Definition TLx4966-platf-ard.c:107

◆ TLx4966_Shield2Go_poll

TLx4966_HwIntf_t TLx4966_Shield2Go_poll
Initial value:
=
{
NULL,
}
TLx4966_GPIO_t speed
Definition TLx4966-platf-ard.c:54
TLx4966_Timer_t TLx4966timer
Definition TLx4966-platf-ard.c:113
TLx4966_GPIO_t direction
Definition TLx4966-platf-ard.c:76

Not available. TODO

◆ TLx4966_Shield2Go_interrupt

TLx4966_HwIntf_t TLx4966_Shield2Go_interrupt
Initial value:
=
{
NULL,
NULL,
NULL,
NULL
}

Not available.