Manual Number: 00650-014-4
Page 5-16
AD12-8 Manual
Example:
int task,params[5],status;
/* these are globally declared variables */
task = 11;
params[0] = 5;
/* set settle time sub task */
params[1] = 50;
/* settle time count of 50 */
a12drv(FP_OFF(&task),FP_OFF(params),FP_OFF(&status));
/* call the driver */
Task 12: Digital Output
Writes to the digital output bits.
Notes:
1. Output values are not checked for proper range. If a value greater than eight bits is sent, the driver
will only send the lower eight bits.
Input:
params[0]: Value to output.
Output:
Data:
None.
Error Codes:
status = 0: No error.
status = 1: Invalid task number, task > 17, or driver not initialized.
Example:
int task,params[5],status;
/* these are globally declared variables */
task = 12;
params[0] = 15;
/* set first 4 output bits high */
a12drv(FP_OFF(&task),FP_OFF(params),FP_OFF(&status));
/* call the driver */
Task 13: Digital Input
Reads the digital input bits.
Notes:
1. Returns the eight bit digital value read from the card digital input register.
Input:
None.