FLIR ADK Getting Started page 12

Hide thumbs Also See for ADK:
Table of Contents

Advertisement

FLI R
ADK
byte
checkRXbuffer()
{
//
byte addy = 0x6C;
byte
reg
= 0x12;
return
i2cread(transAdd, reg);
delay(50);
}
byte
checkTXbuffer()
{
//
byte addy = 0x6C;
byte
reg
= 0x11;
return
i2cread(transAdd, reg);
}
Send I2C Command Array:
byte
transAdd
address
void sendI2CCommandArray(byte
{
i2cwrite(transAdd, 0x09, 0x02);
for (int
i
i2cwrite(transAdd, 0x00, commandBytes[i]);
register on transceiver
}
if
(debug_messages) {
DEBUG.print("Message queued:
DEBUG.print(checkTXbuffer(), HEX);
DEBUG.print("\n");
DEBUG.print("\nCommand
}
i2cwrite(transAdd, 0x09, 0x00);
This flushed the fifo buffer to the boson.
}
It's also necessary to write I2C commands to the Serializer and Deserializer that are 16-bit
addressed. These are also shown here.
void i2cwrite16(byte
{
byte
err;
= 0x6C;
// 0x6C – 7bit address. 0xD8 - I2C to UART Chip 8-bit
commandBytes[],
= 0;
i
< len; i++){
Sent\n\n");
addy,
byte
The information contained herein does not contain technology as
defined by EAR,15 CFR772, is publicly available, and therefore
int
// disable the transmitter on transceiver
// write byte to fifo buffer
0x");
// enable the transmitter on transceiver.
regH,
byte
regL,
byte
not subject to EAR.
Ge tt in g S ta rt ed
len)
val)
12

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents