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
TLx4966-hal.h
Go to the documentation of this file.
1
8#ifndef TLx4966_HAL_H_
9#define TLx4966_HAL_H_
10
11#include <stdint.h>
12#include "TLx4966-types.h"
13
22typedef struct
23{
30 TLx4966_Error_t (*init) (void);
39 TLx4966_Error_t (*enableInt) (TLx4966_GPIO_IntCallback cback, void * fargs);
46 TLx4966_Error_t (*disableInt) (void);
53 TLx4966_IntEvent_t (*intEvent) (void);
60 TLx4966_GPIOLevel_t (*read) (void);
67 TLx4966_Error_t (*enable) (void);
74 TLx4966_Error_t (*disable) (void);
76
80typedef struct
81{
88 TLx4966_Error_t (*init) (void);
93 void (*start) (void);
98 uint32_t (*elapsed) (void);
103 void (*stop) (void);
111 TLx4966_Error_t (*delay) (uint32_t timeout);
113
124
128#endif
TLx4966 Types.
TLx4966_IntEvent_t
Definition TLx4966-types.h:126
void(* TLx4966_GPIO_IntCallback)(void *)
Interrupt callback.
Definition TLx4966-types.h:148
TLx4966_GPIOLevel_t
Definition TLx4966-types.h:137
TLx4966_Error_t
Definition TLx4966-types.h:33
GPIO hardware interface.
Definition TLx4966-hal.h:23
Hardware interface.
Definition TLx4966-hal.h:118
TLx4966_GPIO_t * speed
Definition TLx4966-hal.h:121
TLx4966_Timer_t * timer
Definition TLx4966-hal.h:122
TLx4966_GPIO_t * dir
Definition TLx4966-hal.h:120
TLx4966_GPIO_t * power
Definition TLx4966-hal.h:119
Timer hardware interface.
Definition TLx4966-hal.h:81