DAC functional
git-svn-id: https://svn.vbchaos.nl/svn/hsb/trunk@241 05563f52-14a8-4384-a975-3d1654cca0fa
This commit is contained in:
@@ -187,10 +187,10 @@ ErrorStatus MAX5715Channel_setValue(struct MAX5715_DAC* self, uint16_t value)
|
||||
ErrorStatus returnValue = SUCCESS;
|
||||
|
||||
// Send data to CODEn register
|
||||
MAX5715_writeCODEn(self->parent, MAX5715_SEL_DACB, value);
|
||||
MAX5715_writeCODEn(self->parent, self->id, value);
|
||||
|
||||
// Load CODEn register to DAC output
|
||||
MAX5715_writeLOADn(self->parent, MAX5715_SEL_DACB);
|
||||
MAX5715_writeLOADn(self->parent, self->id);
|
||||
|
||||
return returnValue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user