beautypg.com

Command ‘f’ – add a pass filter, Command ‘f’ – clear all pass filters – Innovate Motorsports OT-2 SDK User Manual

Page 46

background image

46

Command ‘F’ – Add a Pass Filter

Sent:

7 bytes
{

U8 Cmd;

// ‘F’

U8 Header;

// Header to pass on

U8 Destination;

// Destination address to pass on

U8 Source;

// Source to pass on

U8 HMask;

// Header AND mask (0xFF = exact)

U8 DMask;

// Destination AND mask

U8 SMask;

// Source AND mask

}


Responds:

1 byte
{

U8 Result;

// Number of filters in use

}


Notes:

These filters are just that, filters. Messages that match
them are passed on, as received, and applied to the
‘replies’ count in O and I commands (see below).

Command ‘f’ – Clear all Pass Filters

Sent:

1 byte
{

U8 Cmd;

// ‘f’

}


Responds:

1 byte
{

U8 Result;

// Should be 0

}


Notes:

Clear all pass filters. New filters are added with ‘F’
(above).