Name
dac_write16 —
writes a 16-bit word to the DAC
Synopsis
#include <dac.h>
void dac_write16 ( | channel, | |
| value) ; | |
uint8_t channel
;
uint16_t value
;
Arguments
channel
DAC channel
value
value to set
Description
Writes the given 16-bit word to the specified DAC channel. If the
underlying DAC is not 16-bit, the value is scaled as required. For
example, if the underlying DAC is 12-bits, and dac_write16
is
invoked with value of 0xFFFF, the value is scaled down to 0xFFF.