Introduction

The GRCAN model is available in the GrCan plugin.

Loading the Plugin

import GrCan

Attributes

Properties

Name Type Description

bus

iref / CanBusIface

CAN bus

cfg

uint32_t

Congifuation register

config.irq

uint8_t

Interrupt number

config.singleIrq

uint8_t

Single interrupt

ctrl

uint32_t

Control register

irqCtrl

iref / IrqCtrlIface

IRQ controller

irqMask

uint32_t

Interrupt register

mem

iref / MemoryIface

Memory

object.timeSource

object

Time source object (a cpu or machine object)

pendIrq

uint32_t

Pending interrupt register

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

MemAccessIface

MemAccessIface

Memory access interface (registers)

Ports

Prop Iface Description

-

-

-

Registers

Register support is currently experimental!

Register Bank default

Register cfg

Congifuation register

Cold reset value: 0x0

Warm reset value: 0x0

Field Mask Cold Warm Description

-

-

-

-

-

Register stat

Status register

Cold reset value: 0x0

Warm reset value: 0x0

Field Mask Cold Warm Description

-

-

-

-

-

Register ctrl

Control register

Cold reset value: 0x0

Warm reset value: 0x0

Field Mask Cold Warm Description

-

-

-

-

-

Register syncMaskFilt

SYNC mask filter register

Cold reset value: 0x0

Warm reset value: 0x0

Field Mask Cold Warm Description

-

-

-

-

-

Register syncCodeFilt

SYNC code filter register

Cold reset value: 0x0

Warm reset value: 0x0

Field Mask Cold Warm Description

-

-

-

-

-

Register pendIrq

Pending interrupt register

Cold reset value: 0x0

Warm reset value: 0x0

Field Mask Cold Warm Description

-

-

-

-

-

Register irqMask

Interrupt register

Cold reset value: 0x0

Warm reset value: 0x0

Field Mask Cold Warm Description

-

-

-

-

-

Register txChanCtrl

TX channel control register

Cold reset value: 0x0

Warm reset value: 0x0

Field Mask Cold Warm Description

-

-

-

-

-

Register txChanAddr

TX channel address register

Cold reset value: 0x0

Warm reset value: 0x0

Field Mask Cold Warm Description

-

-

-

-

-

Register txChanSize

TX channel size register

Cold reset value: 0x0

Warm reset value: 0x0

Field Mask Cold Warm Description

-

-

-

-

-

Register txChanWr

TX channel write register

Cold reset value: 0x0

Warm reset value: 0x0

Field Mask Cold Warm Description

-

-

-

-

-

Register txChanRd

TX channel read register

Cold reset value: 0x0

Warm reset value: 0x0

Field Mask Cold Warm Description

-

-

-

-

-

Register txChanIrq

TX channel irq register

Cold reset value: 0x0

Warm reset value: 0x0

Field Mask Cold Warm Description

-

-

-

-

-

Register rxChanCtrl

RX channel control register

Cold reset value: 0x0

Warm reset value: 0x0

Field Mask Cold Warm Description

-

-

-

-

-

Register rxChanAddr

RX channel address register

Cold reset value: 0x0

Warm reset value: 0x0

Field Mask Cold Warm Description

-

-

-

-

-

Register rxChanSize

RX channel size register

Cold reset value: 0x0

Warm reset value: 0x0

Field Mask Cold Warm Description

-

-

-

-

-

Register rxChanWr

RX channel write register

Cold reset value: 0x0

Warm reset value: 0x0

Field Mask Cold Warm Description

-

-

-

-

-

Register rxChanRd

RX channel read register

Cold reset value: 0x0

Warm reset value: 0x0

Field Mask Cold Warm Description

-

-

-

-

-

Register rxChanIrq

RX channel irq register

Cold reset value: 0x0

Warm reset value: 0x0

Field Mask Cold Warm Description

-

-

-

-

-

Register rxChanMask

RX channel mask register

Cold reset value: 0x0

Warm reset value: 0x0

Field Mask Cold Warm Description

-

-

-

-

-

Register rxChanCode

RX channel code register

Cold reset value: 0x0

Warm reset value: 0x0

Field Mask Cold Warm Description

-

-

-

-

-