git-svn-id: http://moon:8086/svn/projects/HendiControl@161 fda53097-d464-4ada-af97-ba876c37ca34
28 lines
478 B
C
28 lines
478 B
C
/*
|
|
* 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_ */ |