Data Structures | |
| union | mf_state_t |
Defines | |
| #define | REPEAT_CTR_RELOAD 31 |
| #define | TIMEOUT_CTR_RELOAD 255 |
| #define | MANUAL_MOVE_CTR_RELOAD 255 |
Functions | |
| s32 | MIOS32_MF_Init (u32 mode) |
| s32 | MIOS32_MF_FaderMove (u32 mf, u16 pos) |
| s32 | MIOS32_MF_FaderDirectMove (u32 mf, mios32_mf_direction_t direction) |
| s32 | MIOS32_MF_SuspendSet (u32 mf, u8 suspend) |
| s32 | MIOS32_MF_SuspendGet (u32 mf) |
| s32 | MIOS32_MF_TouchDetectionReset (u32 mf) |
| s32 | MIOS32_MF_ConfigSet (u32 mf, mios32_mf_config_t config) |
| mios32_mf_config_t | MIOS32_MF_ConfigGet (u32 mf) |
| s32 | MIOS32_MF_Tick (u16 *ain_values, u16 *ain_deltas) |
| #define MANUAL_MOVE_CTR_RELOAD 255 |
| #define REPEAT_CTR_RELOAD 31 |
| #define TIMEOUT_CTR_RELOAD 255 |
| mios32_mf_config_t MIOS32_MF_ConfigGet | ( | u32 | mf | ) |
returns the MF configuration
| [in] | mf | motor number (0..MIOS32_MF_NUM-1) |
mf_config.pwm_period
mf_config.pwm_duty_cycle_up
mf_config.pwm_duty_cycle_down
| s32 MIOS32_MF_ConfigSet | ( | u32 | mf, | |
| mios32_mf_config_t | config | |||
| ) |
This function configures various MF driver parameters.
see http://www.ucapps.de/mbhp_mf.html for detailed informations about these parameters.
| [in] | mf | motor number (0..MIOS32_MF_NUM-1) |
| [in] | config | a structure with following members:
|
| s32 MIOS32_MF_FaderDirectMove | ( | u32 | mf, | |
| mios32_mf_direction_t | direction | |||
| ) |
direct control over the motorfader
| [in] | mf | motor number (0..MIOS32_MF_NUM-1) |
| [in] | direction | is MF_Standby, MF_Up or MF_Down |
set target position and move fader
| [in] | mf | motor number (0..MIOS32_MF_NUM-1) |
| [in] | pos | motorfader position (resolution depends on the used AIN resolution, usually 12bit) |
Initializes motorfader driver
| [in] | mode | currently only mode 0 supported |
returns the suspend state of the motor
| [in] | mf | motor number (0..MIOS32_MF_NUM-1) |
1 if motor suspended
0 if motor not suspended
activates/deactivates suspend mode of motor
(function used by touchsensor detection)
| [in] | mf | motor number (0..MIOS32_MF_NUM-1) |
| [in] | suspend | 1 to enable, 0 to disable suspend |
Called from AIN DMA interrupt whenever new conversion results are available
| [in] | *ain_values | pointer to current conversion results |
| [in] | *ain_deltas | pointer to differences between old and new results |
>= 0: mask of 16 "changed" flags which should not cleared (if "changed" flag set, the AIN driver will propagate a new conversion value to the application hook)
this function resets the software implemented touch detection, so that the fader is repositioned regardless if it is currently moved or not
| [in] | mf | motor number (0..MIOS32_MF_NUM-1) |
1.4.7