/*
 * mcp42x6.h
 *
 * Created: 20.02.2019 20:44:33
 *  Author: jens
 */ 


#ifndef MCP42X6_H_
#define MCP42X6_H_

#include <stdlib.h>
#include <stdint.h>

enum MCP47x6_flags
{
	C0 = 0x20,
	C1 = 0x40,
	C2 = 0x80,
	PDN0 = 0x10,
	PDN1 = 0x20,
	mask = 0xF0
};

size_t MCP47x6_write_volatile_dac(uint16_t dac_value, uint8_t *buffer, size_t size);
size_t MCP47x6_write_volatile_mem(uint16_t dac_value, uint8_t *buffer, size_t size);

#endif /* MCP42X6_H_ */