iLLD_TC22x
1.0
|
![]() |
The standard interface position interface (IfxStdIf_Pos) abstract the hardware used for position interface feature like encoder, hall, resolver, ... It provide, after proper initialization an hardware Independent way to interact with the position sensor like getting position, speed, direction, ...
The figure below shows the standard position interface.
This interface defines the following features:
IFX_INLINE float32 IfxStdIf_Pos_getAbsolutePosition | ( | IfxStdIf_Pos * | stdIf) |
Return the position, inclusive turns.
Return the sensor position in rad for rotating sensor inclusive turns, or in m for linear sensors. For linear sensor the effect is the same as IfxStdIf_Pos_GetPosition.
driver | Pointer to the interface driver object |
Definition at line 312 of file IfxStdIf_Pos.h.
IFX_INLINE IfxStdIf_Pos_Dir IfxStdIf_Pos_getDirection | ( | IfxStdIf_Pos * | stdIf) |
Return the direction.
Return the sensor direction.
driver | Pointer to the interface driver object |
Definition at line 340 of file IfxStdIf_Pos.h.
IFX_INLINE IfxStdIf_Pos_Status IfxStdIf_Pos_getFault | ( | IfxStdIf_Pos * | stdIf) |
Return the sensor status.
driver | Pointer to the interface driver object |
Definition at line 319 of file IfxStdIf_Pos.h.
Referenced by IfxStdIf_Pos_isFault().
IFX_INLINE sint32 IfxStdIf_Pos_getOffset | ( | IfxStdIf_Pos * | stdIf) |
Return the raw position sensor offset.
driver | Pointer to the interface driver object |
Definition at line 326 of file IfxStdIf_Pos.h.
IFX_INLINE uint16 IfxStdIf_Pos_getPeriodPerRotation | ( |