Configuration
There are two configuration parameters in the CAN device.
Firstly the config.interrupt
property can be set to influence the interrupt that is raised with the IRQ controller.
Setting that property also updates the AHB PnP info.
The second configuration property is config.infiniteSpeed
.
If that property is set, messages will be sent immediately instead of being scheduled.
The device should be connected to an interrupt controller and a CAN bus, to work properly.
Attributes
Properties
Name | Type | Description |
---|---|---|
basiccan.acceptCode |
uint8_t |
Accept Code register for BasicCAN mode. |
basiccan.acceptMask |
uint8_t |
Accept Mask register for BasicCAN mode. |
basiccan.ctrl |
uint8_t |
Control register for BasicCAN mode. |
basiccan.txID |
[2 x uint8_t] |
TxID registers for BasicCAN mode. |
bus |
iref / <unknown> |
CAN bus the device is connected to. |
busTiming |
[2 x uint8_t] |
Bus Timing registers. |
clockDivider |
uint8_t |
Clock Divider register. |
command |
uint8_t |
Command register. |
config.infiniteSpeed |
uint8_t |
Enable infinite speed mode (no delays when sending messages). |
config.interrupt |
uint8_t |
External interrupt raised with IRQ controller. |
fifo.data |
[64 x uint8_t] |
RX FIFO data buffer. |
fifo.start |
uint32_t |
RX FIFO buffer start location. |
fifo.usage |
uint32_t |
RX FIFO buffer usage. |
interrupt |
uint8_t |
Interrupt register. |
irqCtrl |
iref / <unknown> |
Interrupt controller. |
object.timeSource |
object |
Time source object (a cpu or machine object) |
pelican.acceptCode |
[4 x uint8_t] |
Accept Code registers for PeliCAN mode. |
pelican.acceptMask |
[4 x uint8_t] |
Accept Mask registers for PeliCAN mode. |
pelican.arbLostCaputure |
uint8_t |
Arbitration Lost Capture register for PeliCAN mode. |
pelican.errCodeCapture |
uint8_t |
Error Code Capture register for PeliCAN mode. |
pelican.errWarnLimit |
uint8_t |
Error Warning Limit register for PeliCAN mode. |
pelican.interruptEnable |
uint8_t |
Interrupt Enable register for PeliCAN mode. |
pelican.mode |
uint8_t |
Mode register for PeliCAN mode. |
pelican.rxErrCounter |
uint8_t |
RX Error Counter register for PeliCAN mode. |
pelican.rxMsgCounter |
uint8_t |
RX Message Counter register for PeliCAN mode. |
pelican.txErrCounter |
uint8_t |
TX Error Counter register for PeliCAN mode. |
pelican.txFI |
uint8_t |
TX Frame Info register for PeliCAN mode. |
pelican.txID |
[4 x uint8_t] |
TxID registers for PeliCAN mode. |
status |
uint8_t |
Status register. |
txData |
[8 x uint8_t] |
TX data buffer (excluding TX FI and TX ID registers). |