MSPM0_ValvanoWare  1.0
ECE445L starter code
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__
void MCP4921_Init(uint32_t data)
initialize MCP4921
void MCP4921_Out(uint32_t data)
Output data.