sub_fpwm_config |
Top Previous Next |
Got to SUB-20 page |
Synopsis int sub_fpwm_config( sub_handle hndl, double freq_hz, int flags )
Configure fast PWM module. Parameters •freq_hz - Desired fast PWM frequency in Hz. Frequency can be in a range 8MHz .. 0.238Hz •flags - Set of configuration flags listed below
Return value On success function returns 0. Otherwise error code. Example /* Enable fast PWM module with FPWM_0 and FPWM_2 outputs. PWM frequency 10.6Hz */ sub_fpwm_config( hndl, 10.6, FPWM_ENABLE|FPWM_EN0FPWM_EN2 ); See also |