Skip to content

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:

  • id 11-bit CAN ID
  • data pointer to payload
  • dlc payload length (0-8)
  • out output buffer
  • out_size size 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