110 #define PWM_OUT_60_P30 0 115 #define PWM_OUT_60_P31 1 120 #define PWM_OUT_60_P40 2 125 #define PWM_OUT_60_P41 3 130 #define PWM_OUT_61_P00 4 135 #define PWM_OUT_61_P01 5 140 #define PWM_OUT_61_P31 6 145 #define PWM_OUT_61_P32 7 150 #define PWM_OUT_61_P33 8 155 #define PWM_OUT_61_P44 9 160 #define PWM_OUT_61_P45 10 165 #define PWM_OUT_62_P04 11 170 #define PWM_OUT_62_P05 12 175 #define PWM_OUT_62_P34 13 180 #define PWM_OUT_62_P35 14 185 #define PWM_OUT_62_P46 15 190 #define PWM_OUT_62_P47 16 195 #define PWM_OUT_63_P03 17 200 #define PWM_OUT_63_P37 18 205 #define PWM_OUT_63_P43 19 281 const uword max,
const uword value);
void hsk_pwm_channel_set(const hsk_pwm_channel channel, const uword max, const uword value)
Set the duty cycle for the given channel.
Definition: hsk_pwm.c:354
void hsk_pwm_enable(void)
Turns on the CCU6.
Definition: hsk_pwm.c:424
void hsk_pwm_disable(void)
Deactivates the CCU6 to reduce power consumption.
Definition: hsk_pwm.c:436
void hsk_pwm_port_open(const hsk_pwm_port port)
Set up a PWM output port.
Definition: hsk_pwm.c:241
ubyte hsk_pwm_port
Type definition for ports.
Definition: hsk_pwm.h:105
void hsk_pwm_outChannel_dir(hsk_pwm_outChannel channel, const bool up)
Set the direction of an output channel.
Definition: hsk_pwm.c:396
void hsk_pwm_port_close(const hsk_pwm_port port)
Close a PWM output port.
Definition: hsk_pwm.c:294
ubyte hsk_pwm_channel
Type definition for PWM channels.
Definition: hsk_pwm.h:40
void hsk_pwm_init(const hsk_pwm_channel channel, const ulong freq)
Sets up the the CCU6 timer frequencies that control the PWM cycle.
Definition: hsk_pwm.c:80
ubyte hsk_pwm_outChannel
Type definition for output channels.
Definition: hsk_pwm.h:65