Midnight Sun Firmware
Loading...
Searching...
No Matches
CanSettings

CAN Settings. More...

#include <bootloader_can.h>

Collaboration diagram for CanSettings:

Public Attributes

uint16_t device_id
 
Boot_CanBitrate bitrate
 
bool loopback
 
bool silent
 
CanHwBitrate bitrate
 
GpioAddress tx
 
GpioAddress rx
 

Detailed Description

CAN Settings.

TX Pin will transmit data. RX pin will receive data. The bitrate is the number of bits sent per second. The device ID is the CAN ID of the STM32 node. Loopback will internally connect the transmit and receive CAN lines for testing. Silent mode is used for only listening to the bus.

Member Data Documentation

◆ bitrate [1/2]

CanHwBitrate bitrate

Bits per second

◆ bitrate [2/2]

Boot_CanBitrate bitrate

Bits per second

◆ device_id

uint16_t device_id

Device CAN ID

◆ loopback

bool loopback

Enables self-listening for message debugging

◆ rx

GPIO Pin for CAN RX

◆ silent

bool silent

Device can listen but not transmit messages

◆ tx

GPIO Pin for CAN TX


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