CAN.h
Go to the documentation of this file.
1 /*
2 MIT LICENSE
3 
4 Copyright 2014-2019 Inertial Sense, Inc. - http://inertialsense.com
5 
6 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files(the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions :
7 
8 The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
9 
10 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT, IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
11 */
12 
13 
14 #ifndef CAN_H_
15 #define CAN_H_
16 
17 #include "compiler.h"
18 #include "mcan.h"
19 
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23 
24 void CAN_init(void);
25 bool mcan_send_message(uint32_t id_value, uint8_t *data, uint32_t data_length);
26 int mcan_set_rx_filter(uint32_t id_value);
27 uint8_t mcan_receive_message(uint32_t *id_value, uint8_t *data);
28 void CAN_set_baudrate(uint32_t baudrate);
29 
30 void mcan_test_master(void);
31 void mcan_test_slave(void);
32 
33 #ifdef __cplusplus
34 }
35 #endif
36 
37 #endif /* CAN_H_ */
void mcan_test_slave(void)
Definition: CAN.cpp:215
void CAN_set_baudrate(uint32_t baudrate)
uint8_t mcan_receive_message(uint32_t *id_value, uint8_t *data)
Definition: CAN.cpp:78
void mcan_test_master(void)
Definition: CAN.cpp:163
Commonly used includes, types and macros.
void CAN_init(void)
Definition: CAN.cpp:26
int mcan_set_rx_filter(uint32_t id_value)
Definition: CAN.cpp:125
bool mcan_send_message(uint32_t id_value, uint8_t *data, uint32_t data_length)
Definition: CAN.cpp:40
USBInterfaceDescriptor data


inertial_sense_ros
Author(s):
autogenerated on Sat Sep 19 2020 03:18:13