Here is the list of HALL function APIs
Files | |
file | hall.h |
Contains hall encoder functions implementation. | |
Data Structures | |
struct | HALL_Obj |
Defines the HALL controller object. More... | |
Functions | |
HALL_Handle | HALL_init (void *pMemory, const size_t numBytes) |
Initializes the HALL controller. More... | |
void | HALL_setParams (HALL_Handle handle, const USER_Params *pUserParams) |
Sets the hall estimator parameters. More... | |
void | HALL_setAngleBuf (HALL_Handle handle, const float32_t *ptrAngleBuf) |
Sets the angle buffer value for hall estimator. More... | |
static void | HALL_resetParams (HALL_Handle handle) |
Resets the hall estimator parameters. More... | |
static void | HALL_setGPIOs (HALL_Handle handle, const uint32_t gpioHallU, const uint32_t gpioHallV, const uint32_t gpioHallW, const uint32_t gpioHallUBase, const uint32_t gpioHallVBase, const uint32_t gpioHallWBase) |
Sets GPIO for hall sensors input. More... | |
static float32_t | HALL_getAngle_rad (HALL_Handle handle) |
Gets the angle from the hall estimator, rad. More... | |
static uint16_t | HALL_getInputState (HALL_Handle handle) |
Gets the hall sensors input GPIO state. More... | |
static float32_t | HALL_getSpeed_Hz (HALL_Handle handle) |
Gets the feedback speed from hall estimator. More... | |
static void | HALL_setSpeed_Hz (HALL_Handle handle, const float32_t speedHall_Hz) |
Sets a value to the speed for the hall estimator. More... | |
static void | HALL_setAngleDelta_rad (HALL_Handle handle, const float32_t thetaDelta_rad) |
Sets a value to the theta offset for the hall estimator. More... | |
static void | HALL_setTimeStamp (HALL_Handle handle, const uint32_t timeStamp) |
Sets a value to the time stamp for the hall estimator. More... | |
static void | HALL_setForceAngleAndIndex (HALL_Handle handle, float32_t speedRef) |
Sets the force angle and index for next step of the hall estimator. More... | |
static void | HALL_run (HALL_Handle handle, float32_t speedRef) |
Typedefs | |
typedef struct _HALL_Obj_ * | HALL_Handle |
Defines the HALL handle. More... | |
Enumerations | |
enum | HALL_Status_e { HALL_IDLE = 0, HALL_ALIGNMENT = 1, HALL_CALIBRATION = 2, HALL_RUN = 3 } |
Macros | |
#define | HALL_calcAngle HALL_run |
Runs the HALL controller. More... | |
#define HALL_calcAngle HALL_run |
Runs the HALL controller.
[in] | handle | The HALL controller handle |
[in] | speedRef | The reference speed value to the controller |
typedef struct _HALL_Obj_* HALL_Handle |
Defines the HALL handle.
enum HALL_Status_e |
HALL_Handle HALL_init | ( | void * | pMemory, |
const size_t | numBytes | ||
) |
Initializes the HALL controller.
[in] | pMemory | A pointer to the memory for the HALL controller object |
[in] | numBytes | The number of bytes allocated for the HALL controller object, bytes |
void HALL_setParams | ( | HALL_Handle | handle, |
const USER_Params * | pUserParams | ||
) |
Sets the hall estimator parameters.
[in] | handle | The HALL controller handle |
[in] | pUserParams | The pointer to User_Params object |
void HALL_setAngleBuf | ( | HALL_Handle | handle, |
const float32_t * | ptrAngleBuf | ||
) |
Sets the angle buffer value for hall estimator.
[in] | handle | The HALL controller handle |
[in] | ptrAngleBuf | The pointer to the angle buffer |
|
inlinestatic |
Resets the hall estimator parameters.
[in] | handle | The HALL controller handle |
|
inlinestatic |
Sets GPIO for hall sensors input.
[in] | handle | the HALL Handle |
[in] | gpioHallU | GPIO pin for Hall U |
[in] | gpioHallV | GPIO pin for Hall V |
[in] | gpioHallW | GPIO pin for Hall W |
[in] | gpioHallUBase | the GPIO base address for Hall U |
[in] | gpioHallVBase | the GPIO base address for Hall V |
[in] | gpioHallWBase | the GPIO base address for Hall W |
|
inlinestatic |
Gets the angle from the hall estimator, rad.
[in] | handle | the HALL Handle |
|
inlinestatic |
Gets the hall sensors input GPIO state.
[in] | handle | the HALL Handle |
|
inlinestatic |
Gets the feedback speed from hall estimator.
[in] | handle | the HALL Handle |
|
inlinestatic |
Sets a value to the speed for the hall estimator.
[in] | handle | the HALL Handle |
[in] | speedHall_Hz | the speed value, Hz |
|
inlinestatic |
Sets a value to the theta offset for the hall estimator.
[in] | handle | the HALL Handle |
[in] | thetaDelta_rad | the theta delta value, rad |
|
inlinestatic |
Sets a value to the time stamp for the hall estimator.
[in] | handle | the HALL Handle |
[in] | timeStamp | the time stamp value, clock cycles |
|
inlinestatic |
Sets the force angle and index for next step of the hall estimator.
[in] | handle | The HALL controller handle |
[in] | speedRef | The reference value to the controller |
|
static |