Larus glider flight sensor system 3.9.2024
Software-In-The-Loop test and validation system
Loading...
Searching...
No Matches
CAN_USB_gateway.cpp
Go to the documentation of this file.
1/***********************************************************************/
25#include "USB_serial.h"
26#include "generic_CAN_driver.h"
27#include <CAN_socket_driver.h>
28
29bool CAN_send( const CANpacket &p, unsigned)
30{
31 CAN_gateway_packet output( p);
32
33 write_usb_serial( (uint8_t *) &output, sizeof output);
34
35#ifndef _WIN32
38#endif
39 return true;
40}
41
42
43
bool CAN_send(const CANpacket &p, unsigned)
Global CAN send procedure.
int CAN_socket_send(const CANpacket &p)
bool CAN_socket_is_open(void)
I/O over the generic Linux CANsocket interface.
bool write_usb_serial(uint8_t *data, unsigned size)
Interface to USB -> RS232 (interface)
CAN packet tunneled through USART gateway.
basic CAN packet type
Portable interface to some CAN-bus driver.