Rabbit RabbitCore RCM4200 User Manual page 61

C-programmable analog core module with serial flash and etherne
Table of Contents

Advertisement

PARAMETERS
instructionbyte the instruction byte that will initiate a read or write operation
cmd
brate
RETURN VALUE
0 on write operations
data value on read operations
SEE ALSO
anaInDriver, anaIn, brdInit
User's Manual
anaInConfig (continued)
at 8 or 16 bits on the designated register address. For example,
checkid = anaInConfig(0x5F, 0, 9600);
// read ID and set byte rate
the command data that configure the registers addressed by the in-
struction byte. Enter 0 if you are performing a read operation. For
example,
i = anaInConfig(0x07, 0x3b, 0);
// write ref/osc reg and enable
the serial clock transfer rate of 9600 to 115,200 bytes per second.
brate must be set the first time this function is called. Enter 0 for
this parameter thereafter, for example,
anaInConfig(0x00, 0x00, 9600);
// resets device and sets byte rate
55

Advertisement

Table of Contents
loading

Table of Contents