Larus glider flight sensor system 3.9.2024
Software-In-The-Loop test and validation system
Loading...
Searching...
No Matches
CAN_socket_driver.cpp File Reference

I/O over the generic Linux CANsocket interface. More...

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <net/if.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <linux/can.h>
#include <linux/can/raw.h>
#include <CAN_socket_driver.h>

Go to the source code of this file.

Functions

int CAN_socket_initialize (void)
 
bool CAN_socket_is_open (void)
 
bool CAN_socket_close (void)
 
int CAN_socket_send (const CANpacket &p)
 

Variables

int CAN_socket
 

Detailed Description

I/O over the generic Linux CANsocket interface.

Author
Dr. Klaus Schaefer

<Larus Flight Sensor Firmware>

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Definition in file CAN_socket_driver.cpp.

Function Documentation

◆ CAN_socket_close()

bool CAN_socket_close ( void  )

Definition at line 74 of file CAN_socket_driver.cpp.

References CAN_socket.

◆ CAN_socket_initialize()

int CAN_socket_initialize ( void  )

Definition at line 42 of file CAN_socket_driver.cpp.

References CAN_socket, and vector< datatype, size >::vector().

◆ CAN_socket_is_open()

bool CAN_socket_is_open ( void  )

Definition at line 69 of file CAN_socket_driver.cpp.

References CAN_socket.

Referenced by CAN_send().

◆ CAN_socket_send()

int CAN_socket_send ( const CANpacket p)

Variable Documentation

◆ CAN_socket