MSPM0_ValvanoWare
1.0
ECE445L starter code
inc
MCP4921.h
Go to the documentation of this file.
1
32
#ifndef __MCP4921_H__
33
#define __MCP4921_H__
34
48
void
MCP4921_Init
(uint32_t data);
49
56
void
MCP4921_Out
(uint32_t data);
57
58
72
//#define MCP4921_OutNonBlocking(code) DAC0->DATA0 = code;
73
#define MCP4921_OutNonBlocking(code) SPI0->TXDATA = code|(1<<12);
74
75
#endif
// __MCP4921_H__
MCP4921_Init
void MCP4921_Init(uint32_t data)
initialize MCP4921
MCP4921_Out
void MCP4921_Out(uint32_t data)
Output data.
Generated by
1.9.1