Kamcho Library 02.00.03
lib.kamcho.02.00.03.287
|
Functions | |
int32_t | PWM_devSetPeriod (PWM_Device_t *dev, uint32_t period) |
Set period of a PWM driver. More... | |
int32_t | PWM_devSetWidth (PWM_Device_t *dev, uint32_t width) |
Set width of a PWM driver. More... | |
int32_t | PWM_devSetClockDivider (PWM_Device_t *dev, uint8_t div) |
Set pre-scaler of a PWM driver. More... | |
int32_t | PWM_devInvertEnable (PWM_Device_t *dev) |
Enable PWM inverter. More... | |
int32_t | PWM_devInvertDisable (PWM_Device_t *dev) |
Disable PWM inverter. More... | |
int32_t | PWM_devEnable (PWM_Device_t *dev) |
Enable PWM driver. More... | |
int32_t | PWM_devDisable (PWM_Device_t *dev) |
Disable PWM driver. More... | |
PWM_Device_t * | PWM_devRequest (const char *name) |
Request a PWM Device. More... | |
Variables | |
static PWM_Device_t | PWM1_Device |
The instance of PMW1 device. More... | |
static PWM_Device_t | PWM2_Device |
The instance of PMW2 device. More... | |
static const PWM_Device_t * | PWM_DeviceTable [] |
The table of PWM device instances supported by the platform. More... | |
This file is proprietary to Indie Semiconductor. All rights reserved. Reproduction or distribution, in whole or in part, is forbidden except by express written permission of Indie Semiconductor.
int32_t PWM_devDisable | ( | PWM_Device_t * | dev | ) |
Disable PWM driver.
dev | The pointer to PWM_Device structure. |
int32_t PWM_devEnable | ( | PWM_Device_t * | dev | ) |
Enable PWM driver.
dev | The pointer to PWM_Device structure. |
int32_t PWM_devInvertDisable | ( | PWM_Device_t * | dev | ) |
Disable PWM inverter.
dev | The pointer to PWM_Device structure. |
int32_t PWM_devInvertEnable | ( | PWM_Device_t * | dev | ) |
Enable PWM inverter.
dev | The pointer to PWM_Device structure. |
PWM_Device_t* PWM_devRequest | ( | const char * | name | ) |
Request a PWM Device.
name | The name string of PWM device. |
int32_t PWM_devSetClockDivider | ( | PWM_Device_t * | dev, |
uint8_t | div | ||
) |
Set pre-scaler of a PWM driver.
dev | The pointer to PWM_Device structure. |
div | the setting for clock divider. |
int32_t PWM_devSetPeriod | ( | PWM_Device_t * | dev, |
uint32_t | period | ||
) |
Set period of a PWM driver.
dev | The pointer to PWM_Device structure. |
period | percentage of PWM period |
int32_t PWM_devSetWidth | ( | PWM_Device_t * | dev, |
uint32_t | width | ||
) |
Set width of a PWM driver.
dev | The pointer to PWM_Device structure. |
width | percentage of PWM width |
|
static |
The instance of PMW1 device.
|
static |
The instance of PMW2 device.
|
static |
The table of PWM device instances supported by the platform.