GRLIB GRCAN Model

The GRCAN model is available in the GrCan plugin.

Loading the Plugin

import GrCan

Configuration

@GRCAN Reference

Properties

Name Type Description

Class

*void

Class object

Component

*void

Pointer to component object if part of component

LoggingFlags

uint64_t

Flags for logging info

Name

*char

Object name

TimeSource

*void

Time source object

Commands

Name Description

delete

Dispose instance of @GRCAN

new

Create new instance of GRCAN

Command new Arguments

Name Type Required Description

name

string

yes

Name of object to create

GRCAN Reference

Properties

Name Type Description

Class

*void

Class object

Component

*void

Pointer to component object if part of component

LoggingFlags

uint64_t

Flags for logging info

Name

*char

Object name

TimeSource

*void

Time source object

bus

temu_IfaceRef/ <unknown>

CAN bus.

cfg

uint32_t

Congifuation register

config.irq

uint8_t

Interrupt number

config.logMessages

uint8_t

Enable logging of transmitted and received messages.

config.singleIrq

uint8_t

Single interrupt

ctrl

uint32_t

Control register

irqCtrl

temu_IfaceRef/ <unknown>

IRQ controller.

irqMask

uint32_t

Interrupt register

mem

temu_IfaceRef/ <unknown>

Memory (deprecated)

memAccess

temu_IfaceRef/ <unknown>

Memory access for DMA

pendIrq

uint32_t

Pending interrupt register

pnp.bar

uint32_t

AMBA plug and play base address register

pnp.config

uint32_t

AMBA plug and play config word

rxChanAddr

uint32_t

RX channel address register

rxChanCode

uint32_t

RX channel code register

rxChanCtrl

uint32_t

RX channel control register

rxChanIrq

uint32_t

RX channel irq register

rxChanMask

uint32_t

RX channel mask register

rxChanRd

uint32_t

RX channel read register

rxChanSize

uint32_t

RX channel size register

rxChanWr

uint32_t

RX channel write register

stat

uint32_t

Status register

syncCodeFilt

uint32_t

SYNC code filter register

syncMaskFilt

uint32_t

SYNC mask filter register

txChanAddr

uint32_t

TX channel address register

txChanCtrl

uint32_t

TX channel control register

txChanIrq

uint32_t

TX channel irq register

txChanRd

uint32_t

TX channel read register

txChanSize

uint32_t

TX channel size register

txChanWr

uint32_t

TX channel write register

Interfaces

Name Type Description

ApbIface

ApbIface

APB P&P interface

CanDevIface

CanDevIface

CAN device interface

DeviceIface

DeviceIface

MemAccessIface

MemAccessIface

Memory access interface (registers)

Registers

Register support is currently experimental!

Register Bank default

Register cfg
Description

Congifuation register

Reset value

0x00000000

Warm reset mask

0x00000000

Field Mask Reset Description

-

-

-

-

Register ctrl
Description

Control register

Reset value

0x00000000

Warm reset mask

0x00000000

Field Mask Reset Description

-

-

-

-

Register irqMask
Description

Interrupt register

Reset value

0x00000000

Warm reset mask

0x00000000

Field Mask Reset Description

-

-

-

-

Register pendIrq
Description

Pending interrupt register

Reset value

0x00000000

Warm reset mask

0x00000000

Field Mask Reset Description

-

-

-

-

Register rxChanAddr
Description

RX channel address register

Reset value

0x00000000

Warm reset mask

0x00000000

Field Mask Reset Description

-

-

-

-

Register rxChanCode
Description

RX channel code register

Reset value

0x00000000

Warm reset mask

0x00000000

Field Mask Reset Description

-

-

-

-

Register rxChanCtrl
Description

RX channel control register

Reset value

0x00000000

Warm reset mask

0x00000000

Field Mask Reset Description

-

-

-

-

Register rxChanIrq
Description

RX channel irq register

Reset value

0x00000000

Warm reset mask

0x00000000

Field Mask Reset Description

-

-

-

-

Register rxChanMask
Description

RX channel mask register

Reset value

0x00000000

Warm reset mask

0x00000000

Field Mask Reset Description

-

-

-

-

Register rxChanRd
Description

RX channel read register

Reset value

0x00000000

Warm reset mask

0x00000000

Field Mask Reset Description

-

-

-

-

Register rxChanSize
Description

RX channel size register

Reset value

0x00000000

Warm reset mask

0x00000000

Field Mask Reset Description

-

-

-

-

Register rxChanWr
Description

RX channel write register

Reset value

0x00000000

Warm reset mask

0x00000000

Field Mask Reset Description

-

-

-

-

Register stat
Description

Status register

Reset value

0x00000000

Warm reset mask

0x00000000

Field Mask Reset Description

-

-

-

-

Register syncCodeFilt
Description

SYNC code filter register

Reset value

0x00000000

Warm reset mask

0x00000000

Field Mask Reset Description

-

-

-

-

Register syncMaskFilt
Description

SYNC mask filter register

Reset value

0x00000000

Warm reset mask

0x00000000

Field Mask Reset Description

-

-

-

-

Register txChanAddr
Description

TX channel address register

Reset value

0x00000000

Warm reset mask

0x00000000

Field Mask Reset Description

-

-

-

-

Register txChanCtrl
Description

TX channel control register

Reset value

0x00000000

Warm reset mask

0x00000000

Field Mask Reset Description

-

-

-

-

Register txChanIrq
Description

TX channel irq register

Reset value

0x00000000

Warm reset mask

0x00000000

Field Mask Reset Description

-

-

-

-

Register txChanRd
Description

TX channel read register

Reset value

0x00000000

Warm reset mask

0x00000000

Field Mask Reset Description

-

-

-

-

Register txChanSize
Description

TX channel size register

Reset value

0x00000000

Warm reset mask

0x00000000

Field Mask Reset Description

-

-

-

-

Register txChanWr
Description

TX channel write register

Reset value

0x00000000

Warm reset mask

0x00000000

Field Mask Reset Description

-

-

-

-

Commands

Name Description

delete

Dispose instance of GRCAN

Limitations

  • There is no arbitration of messages in the message passing simulated world and buses are not synchronized.

  • The model does at present not register filters with the CAN bus model.