#include "hpm_mcl_drivers.h"Functions | |
| hpm_mcl_stat_t | hpm_mcl_drivers_init (mcl_drivers_t *drivers, mcl_drivers_cfg_t *cfg) |
| Initialising data for driver functions. More... | |
| hpm_mcl_stat_t | hpm_mcl_drivers_update_bldc_duty (mcl_drivers_t *drivers, float duty_a, float duty_b, float duty_c) |
| Update the duty cycle of a brushless motor. More... | |
| hpm_mcl_stat_t | hpm_mcl_drivers_update_step_duty (mcl_drivers_t *drivers, float duty_a0, float duty_a1, float duty_b0, float duty_b1) |
| Update the duty cycle of a step motor. More... | |
| hpm_mcl_stat_t | hpm_mcl_disable_all_drivers (mcl_drivers_t *drivers) |
| Switch off all drive outputs. More... | |
| hpm_mcl_stat_t | hpm_mcl_enable_all_drivers (mcl_drivers_t *drivers) |
| Enable all drive outputs. More... | |
| hpm_mcl_stat_t | hpm_mcl_disable_drivers (mcl_drivers_t *drivers, mcl_drivers_channel_t chn) |
| Turns off the output of the specified channel of the driver. More... | |
| hpm_mcl_stat_t | hpm_mcl_enable_drivers (mcl_drivers_t *drivers, mcl_drivers_channel_t chn) |
| Starts the output of the specified channel of the driver. More... | |
| hpm_mcl_stat_t | hpm_mcl_drivers_block_update (mcl_drivers_t *drivers, mcl_motor_dir_t dir, uint8_t sector) |
| Block mode updates the outputs of the driver peripherals. More... | |
| hpm_mcl_stat_t hpm_mcl_disable_all_drivers | ( | mcl_drivers_t * | drivers | ) |
| hpm_mcl_stat_t hpm_mcl_disable_drivers | ( | mcl_drivers_t * | drivers, |
| mcl_drivers_channel_t | chn | ||
| ) |
Turns off the output of the specified channel of the driver.
| drivers | mcl_drivers_t |
| chn | mcl_drivers_channel_t |
| hpm_mcl_stat_t hpm_mcl_drivers_block_update | ( | mcl_drivers_t * | drivers, |
| mcl_motor_dir_t | dir, | ||
| uint8_t | sector | ||
| ) |
Block mode updates the outputs of the driver peripherals.
| drivers | mcl_drivers_t |
| dir | mcl_motor_dir_t |
| sector | 1 - 6 |
| hpm_mcl_stat_t hpm_mcl_drivers_init | ( | mcl_drivers_t * | drivers, |
| mcl_drivers_cfg_t * | cfg | ||
| ) |
Initialising data for driver functions.
| drivers | mcl_drivers_t |
| cfg | mcl_drivers_cfg_t |
| hpm_mcl_stat_t hpm_mcl_drivers_update_bldc_duty | ( | mcl_drivers_t * | drivers, |
| float | duty_a, | ||
| float | duty_b, | ||
| float | duty_c | ||
| ) |
Update the duty cycle of a brushless motor.
| drivers | mcl_drivers_t |
| duty_a | a-phase duty cycle |
| duty_b | b-phase duty cycle |
| duty_c | c-phase duty cycle |
| hpm_mcl_stat_t hpm_mcl_drivers_update_step_duty | ( | mcl_drivers_t * | drivers, |
| float | duty_a0, | ||
| float | duty_a1, | ||
| float | duty_b0, | ||
| float | duty_b1 | ||
| ) |
Update the duty cycle of a step motor.
| drivers | mcl_drivers_t |
| duty_a0 | a0-phase duty cycle |
| duty_a1 | a1-phase duty cycle |
| duty_b0 | b0-phase duty cycle |
| duty_b1 | b1-phase duty cycle |
| hpm_mcl_stat_t hpm_mcl_enable_all_drivers | ( | mcl_drivers_t * | drivers | ) |
| hpm_mcl_stat_t hpm_mcl_enable_drivers | ( | mcl_drivers_t * | drivers, |
| mcl_drivers_channel_t | chn | ||
| ) |
Starts the output of the specified channel of the driver.
| drivers | mcl_drivers_t |
| chn | mcl_drivers_channel_t |