mcp1664 2.0.0.0
|
This file contains API for MCP1664 Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_pwm.h"
Go to the source code of this file.
Data Structures | |
struct | mcp1664_t |
Click ctx object definition. More... | |
struct | mcp1664_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | MCP1664_MAP_MIKROBUS(cfg, mikrobus) cfg.pwm = MIKROBUS( mikrobus, MIKROBUS_PWM ) |
#define | MCP1664_RETVAL uint8_t |
#define | MCP1664_OK 0x00 |
#define | MCP1664_INIT_ERROR 0xFF |
#define | MCP1664_DEF_FREQ 20000 |
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. | |
This file contains API for MCP1664 Click driver.