Hd can module programmer’s guide (linux) – Hatteland Display HT B22 (Fanless) User Manual
Page 13
![background image](/manuals/737786/13/background.png)
DOC101356-1_ - rev 2 – 2013-09-24 - Created by:6644
Page 13 of 24
Hatteland Display AS, Åmsosen, N-5578 Nedre Vats, Norway
Tel: (+47) 4814 2200 - [email protected] - www.hatteland-display.com
HD CAN Module Programmer’s Guide (Linux)
All intellectual properties belongs to Hatteland Display AS
filterPattPassThruMsg
.
Data
[
0
]
=
static_cast
<
unsigned
char
>(
pattId
>>
24
);
filterPattPassThruMsg
.
Data
[
1
]
=
static_cast
<
unsigned
char
>(
pattId
>>
16
);
filterPattPassThruMsg
.
Data
[
2
]
=
static_cast
<
unsigned
char
>(
pattId
>>
8
);
filterPattPassThruMsg
.
Data
[
3
]
=
static_cast
<
unsigned
char
>(
pattId
>>
0
);
//Set Standard ID(0/Standard;1/Extended)
filterFlags
.
bits
.
Can29BitId
=
0
;
filterMaskPassThruMsg
.
TxFlags
=
filterFlags
.
value
;
filterFlags
.
bits
.
Can29BitId
=
0
;
filterPattPassThruMsg
.
TxFlags
=
filterFlags
.
value
;
PassThruStartMsgFilter
(
channel_1
,
filterType
,
filterMaskPassThruMsgPtr
,
filterPattPassThruMsgPtr
,
NULL
,
&
filterId
[
filterIdSel
]);
}
/**************************************************************************
**********//**
* @brief Function to stop message filter
***************************************************************************
************/
static
void
callPassThruStopMsgFilter
()
{
int
filterIdSel
=
0
;
J2534_ERROR_CODE err
;
err
=
PassThruStopMsgFilter
(
channel_1
,
filterId
[
filterIdSel
]);
if
(
STATUS_NOERROR
==
err
)
{
filterId
[
filterIdSel
]
=
INITIAL_FILTER_ID
;
}
}
/**************************************************************************
**********//**
* @brief Function to do software reset
***************************************************************************
************/
static
void
callPassThruReset
()
{
PassThruReset
();
}
int
main
(
void
)
{
//Open Device
- 26 inch - HD 26T21 MMC (Widescreen) 24 inch - HD 24T21 MMC (Widescreen) 19 inch - HD 19T21 MMC 17 inch - HD 17T21 MMC 15 inch - HD 15T21 MMC 12 inch - HD 12T21 MMC 13 inch - HD 13T21 MMC (Widescreen, Inte Cor2 Duo CPU) 13 inch - HD 13T21 MMC (Widescreen, Inte Ato CPU) 8 inch - HD 08T21 MMC (Widescreen)