Contains hall encoder functions implementation.
|
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) |
|