Last change
on this file since 127 was 63, checked in by DHERBOMEZ Gérald, 10 years ago |
Small bug corrections in headers of cangateway
|
File size:
1.0 KB
|
Rev | Line | |
---|
[4] | 1 | // *********************************************************************
|
---|
| 2 | // created: 2008/2/28 - 16:24
|
---|
[63] | 3 | // filename: structureCan.h
|
---|
[4] | 4 | //
|
---|
| 5 | // author: Gerald Dherbomez
|
---|
[31] | 6 | // Copyright Heudiasyc UMR UTC/CNRS 6599
|
---|
[4] | 7 | //
|
---|
| 8 | // version: $Id: $
|
---|
| 9 | //
|
---|
[63] | 10 | // purpose: Useless file, see to delete it !!!!
|
---|
| 11 | // gdherbom : 01-08-2014
|
---|
[4] | 12 | //
|
---|
| 13 | // *********************************************************************
|
---|
| 14 |
|
---|
[63] | 15 | #ifndef __STRUCTURECAN_H__
|
---|
| 16 | #define __STRUCTURECAN_H__
|
---|
[4] | 17 |
|
---|
| 18 | #include <cstddef>
|
---|
| 19 |
|
---|
| 20 | #include "driver/CanDriverBase.h"
|
---|
| 21 | #include "CanFrame.h"
|
---|
| 22 |
|
---|
| 23 | //#include "kernel/cstdint.h"
|
---|
| 24 | //#include "kernel/road_time.h"
|
---|
| 25 |
|
---|
| 26 | /// Basic structure of a CAN frame
|
---|
[63] | 27 | //typedef struct CanFrame
|
---|
[4] | 28 | //{
|
---|
[63] | 29 | // static const std::size_t MAX_CAN_MSG_LENGTH = 8;
|
---|
| 30 | //
|
---|
[4] | 31 | // uint32_t id;
|
---|
| 32 | // uint8_t dlc;
|
---|
| 33 | // uint8_t data [MAX_CAN_MSG_LENGTH];
|
---|
[63] | 34 | //}CanFrame;
|
---|
[4] | 35 |
|
---|
[63] | 36 | // CAN structure with timestamping
|
---|
| 37 | //typedef struct TimestampedCanFrame
|
---|
[4] | 38 | //{
|
---|
| 39 | // CanFrame frame;
|
---|
| 40 | // road_time_t time;
|
---|
| 41 | // road_timerange_t timerange;
|
---|
[63] | 42 | //}TimestampedCanFrame;
|
---|
[4] | 43 |
|
---|
| 44 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.