![]() |
LPCOpen Platform for LPC18XX/43XX microcontrollers
18XX43XX
LPCOpen Platform for the NXP LPC18XX/43XX family of Microcontrollers
|
For more information on how to use the driver please visit the FAQ page at www.lpcware.com
Functions | |
| STATIC INLINE uint32_t | Chip_SCTPWM_GetTicksPerCycle (LPC_SCT_T *pSCT) |
| Get number of ticks per PWM cycle. More... | |
| STATIC INLINE uint32_t | Chip_SCTPWM_PercentageToTicks (LPC_SCT_T *pSCT, uint8_t percent) |
| Converts a percentage to ticks. More... | |
| STATIC INLINE uint32_t | Chip_SCTPWM_GetDutyCycle (LPC_SCT_T *pSCT, uint8_t index) |
| Get number of ticks on per PWM cycle. More... | |
| STATIC INLINE void | Chip_SCTPWM_SetDutyCycle (LPC_SCT_T *pSCT, uint8_t index, uint32_t ticks) |
| Get number of ticks on per PWM cycle. More... | |
| STATIC INLINE void | Chip_SCTPWM_Init (LPC_SCT_T *pSCT) |
| Initialize the SCT/PWM clock and reset. More... | |
| STATIC INLINE void | Chip_SCTPWM_Start (LPC_SCT_T *pSCT) |
| Start the SCT PWM. More... | |
| STATIC INLINE void | Chip_SCTPWM_Stop (LPC_SCT_T *pSCT) |
| Stop the SCT PWM. More... | |
| void | Chip_SCTPWM_SetRate (LPC_SCT_T *pSCT, uint32_t freq) |
| Sets the frequency of the generated PWM wave. More... | |
| void | Chip_SCTPWM_SetOutPin (LPC_SCT_T *pSCT, uint8_t index, uint8_t pin) |
| Setup the OUTPUT pin and associate it with an index. More... | |
Get number of ticks on per PWM cycle.
| pSCT | : The base of SCT peripheral on the chip |
| index | : Index of the PWM 1 to N (see notes) |
Definition at line 86 of file sct_pwm_18xx_43xx.h.
Get number of ticks per PWM cycle.
| pSCT | : The base of SCT peripheral on the chip |
Definition at line 56 of file sct_pwm_18xx_43xx.h.
Initialize the SCT/PWM clock and reset.
| pSCT | : The base of SCT peripheral on the chip |
Definition at line 113 of file sct_pwm_18xx_43xx.h.
Converts a percentage to ticks.
| pSCT | : The base of SCT peripheral on the chip |
| percent | : Percentage to convert (0 - 100) |
Definition at line 71 of file sct_pwm_18xx_43xx.h.
Get number of ticks on per PWM cycle.
| pSCT | : The base of SCT peripheral on the chip |
| index | : Index of the PWM 1 to N (see notes) |
| ticks | : Number of ticks the output should say ON |
Definition at line 103 of file sct_pwm_18xx_43xx.h.
| void Chip_SCTPWM_SetOutPin | ( | LPC_SCT_T * | pSCT, |
| uint8_t | index, | ||
| uint8_t | pin | ||
| ) |
Setup the OUTPUT pin and associate it with an index.
| pSCT | : The base of the SCT peripheral on the chip |
| index | : Index of PWM 1 to N (see notes) |
| pin | : COUT pin to be associated with the index |
Definition at line 51 of file sct_pwm_18xx_43xx.c.
| void Chip_SCTPWM_SetRate | ( | LPC_SCT_T * | pSCT, |
| uint32_t | freq | ||
| ) |
Sets the frequency of the generated PWM wave.
| pSCT | : The base of SCT peripheral on the chip |
| freq | : Frequency in Hz |
Definition at line 67 of file sct_pwm_18xx_43xx.c.
Start the SCT PWM.
| pSCT | : The base of SCT peripheral on the chip |
Definition at line 129 of file sct_pwm_18xx_43xx.h.
Stop the SCT PWM.
| pSCT | : The base of SCT peripheral on the chip |
Definition at line 139 of file sct_pwm_18xx_43xx.h.
1.8.3.1