CAN_SETTINGS Structure

This structure defines settings for CAN networks on neoVI and ValueCAN devices.

struct __declspec (align(2))
{
uint8_t Mode;
uint8_t SetBaudrate;
uint8_t Baudrate;
uint8_t transceiver_mode;
uint8_t TqSeg1;
uint8_t TqSeg2;
uint8_t TqProp;
uint8_t TqSync;
uint16_t BRP;
uint8_t auto_baud;
uint8_t innerFrameDelay25us;
}CAN_SETTINGS;

Remarks

ItemDescription

Mode

Sets the mode of the CAN controller

Normal = 0 Disabled = 1 (neoVI FIRE/RED and ValueCAN3 only) Listen only = 3 Listen All = 7 (neoVI FIRE/RED and ValueCAN3 only)

SetBaudrate

The bit rate of the CAN Channel can be selected in one of two ways. This sets the method to calculate the baud rate

Auto (Uses Bitrate parameter) = 0 Use TQ times = 1

Baudrate

The bit rate of a CAN channel can be selected from a list of common bit rates Write the correct enumeration for the desired bit rate and ensure that SetBaudrate is 1(auto) Default value = 8

Note: This parameter is only applicable if SetBaudrate = 0

First Name

Last Name

20000

0

33333

1

50000

2

62500

3

83333

4

100000

5

125000

6

250000

7

500000

8

800000

9

1000000

10

First Name

Last Name

20000

0

33333

1

50000

2

62500

3

83333

4

100000

5

125000

6

250000

7

500000

8

800000

9

1000000

10

transceiver_mode

Not used, set to 0

TqSeg1

Phase segment 1

TqSeg2

Phase segment 2

TqProp

Propagation delay

TqSync

Syncro jump Width

BRP

Baud Rate Prescaler

auto_baud

Enabled Auto bitrate feature. (neoVI FIRE/RED and ValueCAN3) Enable = 1 Disable = 0

innerFrameDelay25us

Adjusts min time between frames (neoVI FIRE/RED and ValueCAN3 only)

Last updated