S16A User’s Guide | Input and Output |
s16a_set_dac_control_reg
Description
Write a specified value to the output DAC Control register.
Syntax
int s16a_set_dac_control_reg(S16aDev *s16a_p, int value);
Arguments |
|
s16a_p | S16A device handle returned from s16a_open |
value | Value to write to the DAC Control register. |
Return
Returns 0 on success or
s16a_set_defaults
Description
Resets the S16A configuration to its default state:
•The Xilinx Programming registers are set to S16A_XRESET and then cleared.
•The UART Command/Status register and the DAC Output Control register are set to 0.
•Gain and offset values are set from /dev/s16a.cfg, which is generated when you run s16acalibrate.
•Ring buffer mode is disabled and driver- or
Syntax
int s16a_set_defaults(S16aDev *s16a_p);
Arguments
s16a_p | S16A device handle returned from s16a_open |
Return
Return value from ioctl call to driver: 0 on success;
EDT, Inc. October, 1996 | 17 |