mcp16331 2.0.0.0
mcp16331.h File Reference

This file contains API for MCP16331 Click driver. More...

#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_spi_master.h"

Go to the source code of this file.

Data Structures

struct  mcp16331_t
 Click ctx object definition. More...
 
struct  mcp16331_cfg_t
 Click configuration structure definition. More...
 

Macros

#define MCP16331_MAP_MIKROBUS(cfg, mikrobus)
 
#define MCP16331_RETVAL   uint8_t
 
#define MCP16331_OK   0x00
 
#define MCP16331_INIT_ERROR   0xFF
 

Functions

void mcp16331_cfg_setup (mcp16331_cfg_t *cfg)
 Config Object Initialization function.
 
MCP16331_RETVAL mcp16331_init (mcp16331_t *ctx, mcp16331_cfg_t *cfg)
 Initialization function.
 
void mcp16331_generic_transfer (mcp16331_t *ctx, uint8_t *wr_buf, uint16_t wr_len, uint8_t *rd_buf, uint16_t rd_len)
 Generic transfer function.
 
void mcp16331_set_vout (mcp16331_t *ctx, uint16_t millivolts_vout)
 mcp16331 set vout
 

Detailed Description

This file contains API for MCP16331 Click driver.