Main Page
Classes
Files
File List
File Members
include
sr_external_dependencies
external
common
ethercat_can_bridge_protocol.h
Go to the documentation of this file.
1
//
2
// © 2010 Shadow Robot Company Limited.
3
//
4
// FileName: ethercat_can_bridge_protocol.h
5
// Dependencies:
6
// Processor: PIC32
7
// Compiler: MPLAB® C32
8
//
9
// +------------------------------------------------------------------------+
10
// | This file is part of The Shadow Robot PIC32 firmware code base. |
11
// | |
12
// | It is free software: you can redistribute it and/or modify |
13
// | it under the terms of the GNU General Public License as published by |
14
// | the Free Software Foundation, either version 3 of the License, or |
15
// | (at your option) any later version. |
16
// | |
17
// | It is distributed in the hope that it will be useful, |
18
// | but WITHOUT ANY WARRANTY; without even the implied warranty of |
19
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
20
// | GNU General Public License for more details. |
21
// | |
22
// | You should have received a copy of the GNU General Public License |
23
// | along with this code repository. The text of the license can be found |
24
// | in Pic32/License/gpl.txt. If not, see <http://www.gnu.org/licenses/>. |
25
// +------------------------------------------------------------------------+
26
//
27
//
28
//
29
// Doxygen
30
// -------
31
//
42
//
43
44
#ifndef ETHERCAT_CAN_BRIDGE_PROTOCOL_H_INCLUDED
45
#define ETHERCAT_CAN_BRIDGE_PROTOCOL_H_INCLUDED
46
47
52
typedef
struct
53
{
54
int8u
can_bus
;
55
int8u
message_length
;
56
int16u
message_id
;
57
int8u
message_data[8];
58
}
__attribute__
((packed)) ETHERCAT_CAN_BRIDGE_DATA;
59
60
#define ETHERCAT_CAN_BRIDGE_DATA_SIZE sizeof(ETHERCAT_CAN_BRIDGE_DATA)
61
62
74
75
76
77
#endif
int16u
unsigned short int16u
Definition:
types_for_external.h:35
__attribute__
This needs to be a #define for symmetry with SENSORS_NUM.
Definition:
0220_palm_edc_ethercat_protocol.h:370
int8u
unsigned char int8u
Definition:
types_for_external.h:32
__attribute__::message_id
int16u message_id
Definition:
ethercat_can_bridge_protocol.h:56
__attribute__::message_length
int8u message_length
Definition:
ethercat_can_bridge_protocol.h:55
__attribute__::can_bus
int8u can_bus
Definition:
ethercat_can_bridge_protocol.h:54
sr_external_dependencies
Author(s): Ugo Cupcic
autogenerated on Tue Oct 13 2020 04:01:56