iLLD_TC27xC  1.0
Hall Pattern Functions
Collaboration diagram for Hall Pattern Functions:

Functions

IFX_EXTERN uint32 IfxCcu6_PwmBc_getMotorSpeed (IfxCcu6_PwmBc *pwmBc)
 returns the current motor speed More...
 
IFX_EXTERN void IfxCcu6_PwmBc_updateHallPattern (IfxCcu6_PwmBc *pwmBc, uint8 controlTable[6][3])
 Updates the Hall pattern. More...
 

Detailed Description

Function Documentation

IFX_EXTERN uint32 IfxCcu6_PwmBc_getMotorSpeed ( IfxCcu6_PwmBc pwmBc)

returns the current motor speed

Parameters
pwmBcModule handle
Returns
speed
// assumed to be declared globally
uint32 speed = 0;
// get the current motor speed

Definition at line 36 of file IfxCcu6_PwmBc.c.

Referenced by IfxCcu6_PwmBc_initModule().

IFX_EXTERN void IfxCcu6_PwmBc_updateHallPattern ( IfxCcu6_PwmBc pwmBc,
uint8  controlTable[6][3] 
)

Updates the Hall pattern.

Parameters
pwmBcModule handle
controlTable[6][3]Motor Control table
Returns
None
// prepare the control table
// assumed to be declared globally
uint8 controlTable[6][3] = {{1, 5, 17} ,
{2, 3, 36} ,
{3, 1, 6} ,
{4, 6, 18} ,
{5, 4, 24} ,
{6, 2, 9}};
// update the output pattern
IfxCcu6_PwmBc_updateHallPattern(&pwmBc, controlTable[6][3]);

Definition at line 438 of file IfxCcu6_PwmBc.c.

Referenced by IfxCcu6_PwmBc_initModule().