Zephyr Project API 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
it51xxx_pwm.h File Reference

Go to the source code of this file.

Macros

#define PWM_PRESCALER_C4   1
#define PWM_PRESCALER_C6   2
#define PWM_PRESCALER_C7   3
#define PWM_CHANNEL_0   0
#define PWM_CHANNEL_1   1
#define PWM_CHANNEL_2   2
#define PWM_CHANNEL_3   3
#define PWM_CHANNEL_4   4
#define PWM_CHANNEL_5   5
#define PWM_CHANNEL_6   6
#define PWM_CHANNEL_7   7
PWM Dimming Duty Cycle Values
#define PWM_DIMMING_DC_40H   0
 PWM dimming maximum duty cycle 25%.
#define PWM_DIMMING_DC_80H   1
 PWM dimming maximum duty cycle 50%.
#define PWM_DIMMING_DC_C0H   2
 PWM dimming maximum duty cycle 75%.
#define PWM_DIMMING_DC_FFH   3
 PWM dimming maximum duty cycle 100%.
PWM Dimming Duty Increase/Decrease Step Values
#define PWM_DIMMING_DC_STEP_1H   0
 PWM dimming duty change step: 1.
#define PWM_DIMMING_DC_STEP_2H   1
 PWM dimming duty change step: 2.
#define PWM_DIMMING_DC_STEP_4H   2
 PWM dimming duty change step: 4.
#define PWM_DIMMING_DC_STEP_8H   3
 PWM dimming duty change step: 8.
#define PWM_IT51XXX_OPEN_DRAIN   BIT(8)
 Provides a type to hold PWM configuration flags.
#define PWM_IT51XXX_DIMMING_MODE   BIT(9)
 Enable PWM dimming mode flag.

Macro Definition Documentation

◆ PWM_CHANNEL_0

#define PWM_CHANNEL_0   0

◆ PWM_CHANNEL_1

#define PWM_CHANNEL_1   1

◆ PWM_CHANNEL_2

#define PWM_CHANNEL_2   2

◆ PWM_CHANNEL_3

#define PWM_CHANNEL_3   3

◆ PWM_CHANNEL_4

#define PWM_CHANNEL_4   4

◆ PWM_CHANNEL_5

#define PWM_CHANNEL_5   5

◆ PWM_CHANNEL_6

#define PWM_CHANNEL_6   6

◆ PWM_CHANNEL_7

#define PWM_CHANNEL_7   7

◆ PWM_DIMMING_DC_40H

#define PWM_DIMMING_DC_40H   0

PWM dimming maximum duty cycle 25%.

◆ PWM_DIMMING_DC_80H

#define PWM_DIMMING_DC_80H   1

PWM dimming maximum duty cycle 50%.

◆ PWM_DIMMING_DC_C0H

#define PWM_DIMMING_DC_C0H   2

PWM dimming maximum duty cycle 75%.

◆ PWM_DIMMING_DC_FFH

#define PWM_DIMMING_DC_FFH   3

PWM dimming maximum duty cycle 100%.

◆ PWM_DIMMING_DC_STEP_1H

#define PWM_DIMMING_DC_STEP_1H   0

PWM dimming duty change step: 1.

◆ PWM_DIMMING_DC_STEP_2H

#define PWM_DIMMING_DC_STEP_2H   1

PWM dimming duty change step: 2.

◆ PWM_DIMMING_DC_STEP_4H

#define PWM_DIMMING_DC_STEP_4H   2

PWM dimming duty change step: 4.

◆ PWM_DIMMING_DC_STEP_8H

#define PWM_DIMMING_DC_STEP_8H   3

PWM dimming duty change step: 8.

◆ PWM_IT51XXX_DIMMING_MODE

#define PWM_IT51XXX_DIMMING_MODE   BIT(9)

Enable PWM dimming mode flag.

◆ PWM_IT51XXX_OPEN_DRAIN

#define PWM_IT51XXX_OPEN_DRAIN   BIT(8)

Provides a type to hold PWM configuration flags.

The upper 8 bits are reserved for SoC specific flags. Output open-drain flag [ 8 ] Output dimming mode flag [ 9 ] PWM open drain flag

◆ PWM_PRESCALER_C4

#define PWM_PRESCALER_C4   1

◆ PWM_PRESCALER_C6

#define PWM_PRESCALER_C6   2

◆ PWM_PRESCALER_C7

#define PWM_PRESCALER_C7   3