Public Member Functions | Private Attributes | List of all members
SocketCAN Class Reference

#include <socket_can_wrapper.h>

Public Member Functions

void deinitialize ()
 
bool framesAvailable ()
 
bool initialize (const char *interface_name)
 
bool readFrame (uint32_t *id, uint8_t *data, uint8_t *size)
 
 SocketCAN ()
 
bool writeFrame (uint32_t id, uint8_t *data, uint8_t size)
 
 ~SocketCAN ()
 

Private Attributes

int can_socket_
 
std::string interface_name_
 

Detailed Description

Copyright (c) 2022-2023 Analog Devices, Inc. All Rights Reserved. This software is proprietary to Analog Devices, Inc. and its licensors.

Definition at line 9 of file socket_can_wrapper.h.

Constructor & Destructor Documentation

◆ SocketCAN()

SocketCAN::SocketCAN ( )

Copyright (c) 2022-2023 Analog Devices, Inc. All Rights Reserved. This software is proprietary to Analog Devices, Inc. and its licensors.

Definition at line 18 of file socket_can_wrapper.cpp.

◆ ~SocketCAN()

SocketCAN::~SocketCAN ( )

Definition at line 26 of file socket_can_wrapper.cpp.

Member Function Documentation

◆ deinitialize()

void SocketCAN::deinitialize ( )

Definition at line 109 of file socket_can_wrapper.cpp.

◆ framesAvailable()

bool SocketCAN::framesAvailable ( )

Definition at line 127 of file socket_can_wrapper.cpp.

◆ initialize()

bool SocketCAN::initialize ( const char *  interface_name)

Definition at line 31 of file socket_can_wrapper.cpp.

◆ readFrame()

bool SocketCAN::readFrame ( uint32_t *  id,
uint8_t *  data,
uint8_t *  size 
)

Definition at line 162 of file socket_can_wrapper.cpp.

◆ writeFrame()

bool SocketCAN::writeFrame ( uint32_t  id,
uint8_t *  data,
uint8_t  size 
)

Definition at line 196 of file socket_can_wrapper.cpp.

Member Data Documentation

◆ can_socket_

int SocketCAN::can_socket_
private

Definition at line 34 of file socket_can_wrapper.h.

◆ interface_name_

std::string SocketCAN::interface_name_
private

Definition at line 35 of file socket_can_wrapper.h.


The documentation for this class was generated from the following files:


adi_tmcl
Author(s):
autogenerated on Wed Apr 2 2025 02:43:01