mcp1664 2.0.0.0
|
Functions | |
void | mcp1664_cfg_setup (mcp1664_cfg_t *cfg) |
Config Object Initialization function. | |
MCP1664_RETVAL | mcp1664_init (mcp1664_t *ctx, mcp1664_cfg_t *cfg) |
Initialization function. | |
void | mcp1664_set_duty_cycle (mcp1664_t *ctx, float duty_cycle) |
Generic sets PWM duty cycle. | |
void | mcp1664_pwm_stop (mcp1664_t *ctx) |
Stop PWM module. | |
void | mcp1664_pwm_start (mcp1664_t *ctx) |
Start PWM module. | |
void mcp1664_cfg_setup | ( | mcp1664_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
MCP1664_RETVAL mcp1664_init | ( | mcp1664_t * | ctx, |
mcp1664_cfg_t * | cfg ) |
Initialization function.
ctx | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void mcp1664_pwm_start | ( | mcp1664_t * | ctx | ) |
Start PWM module.
ctx | Click object. |
@description This function starts PWM module.
void mcp1664_pwm_stop | ( | mcp1664_t * | ctx | ) |
Stop PWM module.
ctx | Click object. |
@description This function stops PWM module.
void mcp1664_set_duty_cycle | ( | mcp1664_t * | ctx, |
float | duty_cycle ) |
Generic sets PWM duty cycle.
ctx | Click object. |
duty_cycle | Duty cycle. |
@description This function sets the PWM duty cycle.