CAN sender.
More...
#include <can_sender.h>
template<typename SensorType>
class apollo::drivers::canbus::CanSender< SensorType >
CAN sender.
◆ CanSender()
template<typename SensorType >
◆ ~CanSender()
template<typename SensorType >
◆ AddMessage()
template<typename SensorType >
Add a message with its ID, protocol data.
- Parameters
-
message_id | The message ID. |
protocol_data | A pointer of ProtocolData which contains the content to send. |
init_with_one | If it is true, then initialize all bits in the protocol data as one. By default, it is false. |
◆ enable_log()
template<typename SensorType >
◆ FRIEND_TEST()
template<typename SensorType >
◆ Init()
template<typename SensorType >
Initialize by a CAN client based on its brand.
- Parameters
-
can_client | The CAN client to use for sending messages. |
enable_log | whether enable record the send can frame log |
- Returns
- An error code indicating the status of this initialization.
◆ IsRunning()
template<typename SensorType >
Get the working status of this CAN sender. To check if it is running.
- Returns
- If this CAN sender is running.
◆ Start()
template<typename SensorType >
Start the CAN sender.
- Returns
- The error code indicating the status of this action.
◆ Stop()
template<typename SensorType >
◆ Update()
template<typename SensorType >
The documentation for this class was generated from the following file: