mcp1664 2.0.0.0
Public function

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.
 

Detailed Description

Function Documentation

◆ mcp1664_cfg_setup()

void mcp1664_cfg_setup ( mcp1664_cfg_t * cfg)

Config Object Initialization function.

Parameters
cfgClick configuration structure.

@description This function initializes click configuration structure to init state.

Note
All used pins will be set to unconnected state.

◆ mcp1664_init()

MCP1664_RETVAL mcp1664_init ( mcp1664_t * ctx,
mcp1664_cfg_t * cfg )

Initialization function.

Parameters
ctxClick object.
cfgClick configuration structure.

@description This function initializes all necessary pins and peripherals used for this click.

◆ mcp1664_pwm_start()

void mcp1664_pwm_start ( mcp1664_t * ctx)

Start PWM module.

Parameters
ctxClick object.

@description This function starts PWM module.

◆ mcp1664_pwm_stop()

void mcp1664_pwm_stop ( mcp1664_t * ctx)

Stop PWM module.

Parameters
ctxClick object.

@description This function stops PWM module.

◆ mcp1664_set_duty_cycle()

void mcp1664_set_duty_cycle ( mcp1664_t * ctx,
float duty_cycle )

Generic sets PWM duty cycle.

Parameters
ctxClick object.
duty_cycleDuty cycle.

@description This function sets the PWM duty cycle.