File slcanFormat.h
FileList > driver > Inc > slcanFormat.h
Go to the source code of this file
#include <stdint.h>#include <stddef.h>
Public Functions
| Type | Name |
|---|---|
| int | can_to_slcan (uint16_t id, const uint8_t * data, uint8_t dlc, char * out, uint8_t out_size) Convert CAN frame to SLCAN string. |
Public Functions Documentation
function can_to_slcan
Convert CAN frame to SLCAN string.
int can_to_slcan (
uint16_t id,
const uint8_t * data,
uint8_t dlc,
char * out,
uint8_t out_size
)
Activates the FDCAN peripheral so it can transmit and receive messages.
Parameters:
id11-bit CAN IDdatapointer to payloaddlcpayload length (0-8)outoutput bufferout_sizesize of output buffer
Returns:
int Returns number of bytes written, or -1 on error
The documentation for this class was generated from the following file driver/Inc/slcanFormat.h