Dummy_CAN_DuT
Functions
Dummy_CANFD_Socket.h File Reference
#include <linux/can.h>
Include dependency graph for Dummy_CANFD_Socket.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int setupSocket (int *socketFD, struct sockaddr_can *addr)
 

Function Documentation

◆ setupSocket()

int setupSocket ( int *  socketFD,
struct sockaddr_can *  addr 
)

Creates and binds a CAN/CANFD socket on an interface. Support for CANFD frames can be enabled if needed.

Parameters
socketFD- Storage for the created socket descriptor.
addr- Storage for the sockaddr_can of the socket.