Altera SoCAL  16.0
The Altera SoC Abstraction Layer (SoCAL) API Reference Manual
 All Data Structures Variables Typedefs Groups
Register : Status Register - CSTS

Description

Status Register

Register Layout

Bits Access Reset Description
[2:0] R 0x7 Last Error Code
[3] R 0x0 Transmitted a Message Successfully
[4] R 0x0 Received a Message Successfully
[5] R 0x0 Error Passive
[6] R 0x0 Warning Status
[7] R 0x0 Bus_Off Status
[8] R 0x0 Parity Error Detected
[31:9] ??? 0x0 UNDEFINED

Field : Last Error Code - LEC

The LEC field holds a code which indicates the type of the last error to occur on the CAN bus. This field will be cleared to 0 when a message has been transferred (reception or transmission) without error.

Field Enumeration Values:

Enum Value Description
ALT_CAN_PROTO_CSTS_LEC_E_NOERROR 0x0 Set together with CSTS.RxOK or CSTS.TxOK.
ALT_CAN_PROTO_CSTS_LEC_E_STUFFERROR 0x1 More than 5 equal bits in a sequence have
: occurred in a part of a received message where
: this is not allowed.
ALT_CAN_PROTO_CSTS_LEC_E_FORMERROR 0x2 A fixed format part of a received frame has the
: wrong format.
ALT_CAN_PROTO_CSTS_LEC_E_ACKERROR 0x3 The message this CAN Core transmitted was not
: acknowledged by another node.
ALT_CAN_PROTO_CSTS_LEC_E_BIT1ERROR 0x4 During the transmission of a message (with the
: exception of the arbitration field), the device
: wanted to send a recessive level (bit of logical
: value 1), but the monitored bus value was
: dominant.
ALT_CAN_PROTO_CSTS_LEC_E_BIT0ERROR 0x5 During the transmission of a message (or
: acknowledge bit, or active error flag, or
: overload flag), the device wanted to send a
: dominant level (data or identifier bit logical
: value 0), but the monitored bus value was
: recessive. During Bus_Off recovery this status
: is set each time a sequence of 11 recessive bits
: has been monitored. This enables the CPU to
: monitor the proceeding of the Bus_Off recovery
: sequence (indicating the bus is not stuck at
: dominant or continuously disturbed).
ALT_CAN_PROTO_CSTS_LEC_E_CRCERROR 0x6 The CRC checksum was incorrect in the message
: received, the CRC received for an incoming
: message does not match with the calculated CRC
: for the received data.
ALT_CAN_PROTO_CSTS_LEC_E_NOCHANGE 0x7 Any read access to the Status Register re
: initializes the LEC to 7. When the LEC shows the
: value 7, no CAN bus event was detected since the
: last CPU read access to the Status Register.

Field Access Macros:

#define ALT_CAN_PROTO_CSTS_LEC_E_NOERROR   0x0
 
#define ALT_CAN_PROTO_CSTS_LEC_E_STUFFERROR   0x1
 
#define ALT_CAN_PROTO_CSTS_LEC_E_FORMERROR   0x2
 
#define ALT_CAN_PROTO_CSTS_LEC_E_ACKERROR   0x3
 
#define ALT_CAN_PROTO_CSTS_LEC_E_BIT1ERROR   0x4
 
#define ALT_CAN_PROTO_CSTS_LEC_E_BIT0ERROR   0x5
 
#define ALT_CAN_PROTO_CSTS_LEC_E_CRCERROR   0x6
 
#define ALT_CAN_PROTO_CSTS_LEC_E_NOCHANGE   0x7
 
#define ALT_CAN_PROTO_CSTS_LEC_LSB   0
 
#define ALT_CAN_PROTO_CSTS_LEC_MSB   2
 
#define ALT_CAN_PROTO_CSTS_LEC_WIDTH   3
 
#define ALT_CAN_PROTO_CSTS_LEC_SET_MSK   0x00000007
 
#define ALT_CAN_PROTO_CSTS_LEC_CLR_MSK   0xfffffff8
 
#define ALT_CAN_PROTO_CSTS_LEC_RESET   0x7
 
#define ALT_CAN_PROTO_CSTS_LEC_GET(value)   (((value) & 0x00000007) >> 0)
 
#define ALT_CAN_PROTO_CSTS_LEC_SET(value)   (((value) << 0) & 0x00000007)
 

Field : Transmitted a Message Successfully - TxOK

Transmitted a Message Successfully

Field Enumeration Values:

Enum Value Description
ALT_CAN_PROTO_CSTS_TXOK_E_NOTXOK 0x0 Since this bit was last read by the CPU, no
: message has been successfully transmitted. This
: bit is never reset by CAN internal events.
ALT_CAN_PROTO_CSTS_TXOK_E_TXOK 0x1 Since this bit was last reset by a read access
: of the CPU, a message has been successfully
: (error free and acknowledged by at least one
: other node) transmitted. This bit will be reset
: by reading the Status Register.

Field Access Macros:

#define ALT_CAN_PROTO_CSTS_TXOK_E_NOTXOK   0x0
 
#define ALT_CAN_PROTO_CSTS_TXOK_E_TXOK   0x1
 
#define ALT_CAN_PROTO_CSTS_TXOK_LSB   3
 
#define ALT_CAN_PROTO_CSTS_TXOK_MSB   3
 
#define ALT_CAN_PROTO_CSTS_TXOK_WIDTH   1
 
#define ALT_CAN_PROTO_CSTS_TXOK_SET_MSK   0x00000008
 
#define ALT_CAN_PROTO_CSTS_TXOK_CLR_MSK   0xfffffff7
 
#define ALT_CAN_PROTO_CSTS_TXOK_RESET   0x0
 
#define ALT_CAN_PROTO_CSTS_TXOK_GET(value)   (((value) & 0x00000008) >> 3)
 
#define ALT_CAN_PROTO_CSTS_TXOK_SET(value)   (((value) << 3) & 0x00000008)
 

Field : Received a Message Successfully - RxOK

Received a Message Successfully

Field Enumeration Values:

Enum Value Description
ALT_CAN_PROTO_CSTS_RXOK_E_NORXOK 0x0 Since this bit was read by the CPU, no message
: has been successfully received. This bit is
: never reset by CAN internal events.
ALT_CAN_PROTO_CSTS_RXOK_E_RXOK 0x1 Since this bit was last reset by a read access
: of the CPU, a message has been successfully
: received (independently of the result of
: acceptance filtering). This bit will be reset by
: reading the Status Register.

Field Access Macros:

#define ALT_CAN_PROTO_CSTS_RXOK_E_NORXOK   0x0
 
#define ALT_CAN_PROTO_CSTS_RXOK_E_RXOK   0x1
 
#define ALT_CAN_PROTO_CSTS_RXOK_LSB   4
 
#define ALT_CAN_PROTO_CSTS_RXOK_MSB   4
 
#define ALT_CAN_PROTO_CSTS_RXOK_WIDTH   1
 
#define ALT_CAN_PROTO_CSTS_RXOK_SET_MSK   0x00000010
 
#define ALT_CAN_PROTO_CSTS_RXOK_CLR_MSK   0xffffffef
 
#define ALT_CAN_PROTO_CSTS_RXOK_RESET   0x0
 
#define ALT_CAN_PROTO_CSTS_RXOK_GET(value)   (((value) & 0x00000010) >> 4)
 
#define ALT_CAN_PROTO_CSTS_RXOK_SET(value)   (((value) << 4) & 0x00000010)
 

Field : Error Passive - EPASS

Error Passive

Field Enumeration Values:

Enum Value Description
ALT_CAN_PROTO_CSTS_EPASS_E_ACT 0x0 The CAN Core is in the error active state. It
: normally takes part in bus communication and
: sends an active error flag when an error has
: been detected.
ALT_CAN_PROTO_CSTS_EPASS_E_PASSIVE 0x1 The CAN Core is in the error passive state as
: defined in the CAN Specification.

Field Access Macros:

#define ALT_CAN_PROTO_CSTS_EPASS_E_ACT   0x0
 
#define ALT_CAN_PROTO_CSTS_EPASS_E_PASSIVE   0x1
 
#define ALT_CAN_PROTO_CSTS_EPASS_LSB   5
 
#define ALT_CAN_PROTO_CSTS_EPASS_MSB   5
 
#define ALT_CAN_PROTO_CSTS_EPASS_WIDTH   1
 
#define ALT_CAN_PROTO_CSTS_EPASS_SET_MSK   0x00000020
 
#define ALT_CAN_PROTO_CSTS_EPASS_CLR_MSK   0xffffffdf
 
#define ALT_CAN_PROTO_CSTS_EPASS_RESET   0x0
 
#define ALT_CAN_PROTO_CSTS_EPASS_GET(value)   (((value) & 0x00000020) >> 5)
 
#define ALT_CAN_PROTO_CSTS_EPASS_SET(value)   (((value) << 5) & 0x00000020)
 

Field : Warning Status - EWarn

Warning Status

Field Enumeration Values:

Enum Value Description
ALT_CAN_PROTO_CSTS_EWARN_E_BELOWLIMIT 0x0 Both error counters are below the error warning
: limit of 96.
ALT_CAN_PROTO_CSTS_EWARN_E_ABOVELIMIT 0x1 At least one of the error counters in the EML
: has reached the error warning limit of 96.

Field Access Macros:

#define ALT_CAN_PROTO_CSTS_EWARN_E_BELOWLIMIT   0x0
 
#define ALT_CAN_PROTO_CSTS_EWARN_E_ABOVELIMIT   0x1
 
#define ALT_CAN_PROTO_CSTS_EWARN_LSB   6
 
#define ALT_CAN_PROTO_CSTS_EWARN_MSB   6
 
#define ALT_CAN_PROTO_CSTS_EWARN_WIDTH   1
 
#define ALT_CAN_PROTO_CSTS_EWARN_SET_MSK   0x00000040
 
#define ALT_CAN_PROTO_CSTS_EWARN_CLR_MSK   0xffffffbf
 
#define ALT_CAN_PROTO_CSTS_EWARN_RESET   0x0
 
#define ALT_CAN_PROTO_CSTS_EWARN_GET(value)   (((value) & 0x00000040) >> 6)
 
#define ALT_CAN_PROTO_CSTS_EWARN_SET(value)   (((value) << 6) & 0x00000040)
 

Field : Bus_Off Status - BOff

Bus_Off Status

Field Enumeration Values:

Enum Value Description
ALT_CAN_PROTO_CSTS_BOFF_E_NOTBUSOFF 0x0 The CAN module is not Bus_Off.
ALT_CAN_PROTO_CSTS_BOFF_E_BUSOFF 0x1 The CAN module is in Bus_Off state.

Field Access Macros:

#define ALT_CAN_PROTO_CSTS_BOFF_E_NOTBUSOFF   0x0
 
#define ALT_CAN_PROTO_CSTS_BOFF_E_BUSOFF   0x1
 
#define ALT_CAN_PROTO_CSTS_BOFF_LSB   7
 
#define ALT_CAN_PROTO_CSTS_BOFF_MSB   7
 
#define ALT_CAN_PROTO_CSTS_BOFF_WIDTH   1
 
#define ALT_CAN_PROTO_CSTS_BOFF_SET_MSK   0x00000080
 
#define ALT_CAN_PROTO_CSTS_BOFF_CLR_MSK   0xffffff7f
 
#define ALT_CAN_PROTO_CSTS_BOFF_RESET   0x0
 
#define ALT_CAN_PROTO_CSTS_BOFF_GET(value)   (((value) & 0x00000080) >> 7)
 
#define ALT_CAN_PROTO_CSTS_BOFF_SET(value)   (((value) << 7) & 0x00000080)
 

Field : Parity Error Detected - PER

Parity Error Detected

Field Enumeration Values:

Enum Value Description
ALT_CAN_PROTO_CSTS_PER_E_NONE 0x0 No parity error detected since last read access.
ALT_CAN_PROTO_CSTS_PER_E_ERRORDETECTED 0x1 The Parity CheckMechanism has detected a parity
: error in the Message RAM, this bit will be reset
: if Status Register is read

Field Access Macros:

#define ALT_CAN_PROTO_CSTS_PER_E_NONE   0x0
 
#define ALT_CAN_PROTO_CSTS_PER_E_ERRORDETECTED   0x1
 
#define ALT_CAN_PROTO_CSTS_PER_LSB   8
 
#define ALT_CAN_PROTO_CSTS_PER_MSB   8
 
#define ALT_CAN_PROTO_CSTS_PER_WIDTH   1
 
#define ALT_CAN_PROTO_CSTS_PER_SET_MSK   0x00000100
 
#define ALT_CAN_PROTO_CSTS_PER_CLR_MSK   0xfffffeff
 
#define ALT_CAN_PROTO_CSTS_PER_RESET   0x0
 
#define ALT_CAN_PROTO_CSTS_PER_GET(value)   (((value) & 0x00000100) >> 8)
 
#define ALT_CAN_PROTO_CSTS_PER_SET(value)   (((value) << 8) & 0x00000100)
 

Data Structures

struct  ALT_CAN_PROTO_CSTS_s
 

Macros

#define ALT_CAN_PROTO_CSTS_OFST   0x4
 
#define ALT_CAN_PROTO_CSTS_ADDR(base)   ALT_CAST(void *, (ALT_CAST(char *, (base)) + ALT_CAN_PROTO_CSTS_OFST))
 

Typedefs

typedef struct ALT_CAN_PROTO_CSTS_s ALT_CAN_PROTO_CSTS_t
 

Data Structure Documentation

struct ALT_CAN_PROTO_CSTS_s

WARNING: The C register and register group struct declarations are provided for convenience and illustrative purposes. They should, however, be used with caution as the C language standard provides no guarantees about the alignment or atomicity of device memory accesses. The recommended practice for writing hardware drivers is to use the SoCAL access macros and alt_read_word() and alt_write_word() functions.

The struct declaration for register ALT_CAN_PROTO_CSTS.

Data Fields
const uint32_t LEC: 3 Last Error Code
const uint32_t TxOK: 1 Transmitted a Message Successfully
const uint32_t RxOK: 1 Received a Message Successfully
const uint32_t EPASS: 1 Error Passive
const uint32_t EWarn: 1 Warning Status
const uint32_t BOff: 1 Bus_Off Status
const uint32_t PER: 1 Parity Error Detected
uint32_t __pad0__: 23 UNDEFINED

Macro Definitions

#define ALT_CAN_PROTO_CSTS_LEC_E_NOERROR   0x0

Enumerated value for register field ALT_CAN_PROTO_CSTS_LEC

Set together with CSTS.RxOK or CSTS.TxOK.

#define ALT_CAN_PROTO_CSTS_LEC_E_STUFFERROR   0x1

Enumerated value for register field ALT_CAN_PROTO_CSTS_LEC

More than 5 equal bits in a sequence have occurred in a part of a received message where this is not allowed.

#define ALT_CAN_PROTO_CSTS_LEC_E_FORMERROR   0x2

Enumerated value for register field ALT_CAN_PROTO_CSTS_LEC

A fixed format part of a received frame has the wrong format.

#define ALT_CAN_PROTO_CSTS_LEC_E_ACKERROR   0x3

Enumerated value for register field ALT_CAN_PROTO_CSTS_LEC

The message this CAN Core transmitted was not acknowledged by another node.

#define ALT_CAN_PROTO_CSTS_LEC_E_BIT1ERROR   0x4

Enumerated value for register field ALT_CAN_PROTO_CSTS_LEC

During the transmission of a message (with the exception of the arbitration field), the device wanted to send a recessive level (bit of logical value 1), but the monitored bus value was dominant.

#define ALT_CAN_PROTO_CSTS_LEC_E_BIT0ERROR   0x5

Enumerated value for register field ALT_CAN_PROTO_CSTS_LEC

During the transmission of a message (or acknowledge bit, or active error flag, or overload flag), the device wanted to send a dominant level (data or identifier bit logical value 0), but the monitored bus value was recessive. During Bus_Off recovery this status is set each time a sequence of 11 recessive bits has been monitored. This enables the CPU to monitor the proceeding of the Bus_Off recovery sequence (indicating the bus is not stuck at dominant or continuously disturbed).

#define ALT_CAN_PROTO_CSTS_LEC_E_CRCERROR   0x6

Enumerated value for register field ALT_CAN_PROTO_CSTS_LEC

The CRC checksum was incorrect in the message received, the CRC received for an incoming message does not match with the calculated CRC for the received data.

#define ALT_CAN_PROTO_CSTS_LEC_E_NOCHANGE   0x7

Enumerated value for register field ALT_CAN_PROTO_CSTS_LEC

Any read access to the Status Register re initializes the LEC to 7. When the LEC shows the value 7, no CAN bus event was detected since the last CPU read access to the Status Register.

#define ALT_CAN_PROTO_CSTS_LEC_LSB   0

The Least Significant Bit (LSB) position of the ALT_CAN_PROTO_CSTS_LEC register field.

#define ALT_CAN_PROTO_CSTS_LEC_MSB   2

The Most Significant Bit (MSB) position of the ALT_CAN_PROTO_CSTS_LEC register field.

#define ALT_CAN_PROTO_CSTS_LEC_WIDTH   3

The width in bits of the ALT_CAN_PROTO_CSTS_LEC register field.

#define ALT_CAN_PROTO_CSTS_LEC_SET_MSK   0x00000007

The mask used to set the ALT_CAN_PROTO_CSTS_LEC register field value.

#define ALT_CAN_PROTO_CSTS_LEC_CLR_MSK   0xfffffff8

The mask used to clear the ALT_CAN_PROTO_CSTS_LEC register field value.

#define ALT_CAN_PROTO_CSTS_LEC_RESET   0x7

The reset value of the ALT_CAN_PROTO_CSTS_LEC register field.

#define ALT_CAN_PROTO_CSTS_LEC_GET (   value)    (((value) & 0x00000007) >> 0)

Extracts the ALT_CAN_PROTO_CSTS_LEC field value from a register.

#define ALT_CAN_PROTO_CSTS_LEC_SET (   value)    (((value) << 0) & 0x00000007)

Produces a ALT_CAN_PROTO_CSTS_LEC register field value suitable for setting the register.

#define ALT_CAN_PROTO_CSTS_TXOK_E_NOTXOK   0x0

Enumerated value for register field ALT_CAN_PROTO_CSTS_TXOK

Since this bit was last read by the CPU, no message has been successfully transmitted. This bit is never reset by CAN internal events.

#define ALT_CAN_PROTO_CSTS_TXOK_E_TXOK   0x1

Enumerated value for register field ALT_CAN_PROTO_CSTS_TXOK

Since this bit was last reset by a read access of the CPU, a message has been successfully (error free and acknowledged by at least one other node) transmitted. This bit will be reset by reading the Status Register.

#define ALT_CAN_PROTO_CSTS_TXOK_LSB   3

The Least Significant Bit (LSB) position of the ALT_CAN_PROTO_CSTS_TXOK register field.

#define ALT_CAN_PROTO_CSTS_TXOK_MSB   3

The Most Significant Bit (MSB) position of the ALT_CAN_PROTO_CSTS_TXOK register field.

#define ALT_CAN_PROTO_CSTS_TXOK_WIDTH   1

The width in bits of the ALT_CAN_PROTO_CSTS_TXOK register field.

#define ALT_CAN_PROTO_CSTS_TXOK_SET_MSK   0x00000008

The mask used to set the ALT_CAN_PROTO_CSTS_TXOK register field value.

#define ALT_CAN_PROTO_CSTS_TXOK_CLR_MSK   0xfffffff7

The mask used to clear the ALT_CAN_PROTO_CSTS_TXOK register field value.

#define ALT_CAN_PROTO_CSTS_TXOK_RESET   0x0

The reset value of the ALT_CAN_PROTO_CSTS_TXOK register field.

#define ALT_CAN_PROTO_CSTS_TXOK_GET (   value)    (((value) & 0x00000008) >> 3)

Extracts the ALT_CAN_PROTO_CSTS_TXOK field value from a register.

#define ALT_CAN_PROTO_CSTS_TXOK_SET (   value)    (((value) << 3) & 0x00000008)

Produces a ALT_CAN_PROTO_CSTS_TXOK register field value suitable for setting the register.

#define ALT_CAN_PROTO_CSTS_RXOK_E_NORXOK   0x0

Enumerated value for register field ALT_CAN_PROTO_CSTS_RXOK

Since this bit was read by the CPU, no message has been successfully received. This bit is never reset by CAN internal events.

#define ALT_CAN_PROTO_CSTS_RXOK_E_RXOK   0x1

Enumerated value for register field ALT_CAN_PROTO_CSTS_RXOK

Since this bit was last reset by a read access of the CPU, a message has been successfully received (independently of the result of acceptance filtering). This bit will be reset by reading the Status Register.

#define ALT_CAN_PROTO_CSTS_RXOK_LSB   4

The Least Significant Bit (LSB) position of the ALT_CAN_PROTO_CSTS_RXOK register field.

#define ALT_CAN_PROTO_CSTS_RXOK_MSB   4

The Most Significant Bit (MSB) position of the ALT_CAN_PROTO_CSTS_RXOK register field.

#define ALT_CAN_PROTO_CSTS_RXOK_WIDTH   1

The width in bits of the ALT_CAN_PROTO_CSTS_RXOK register field.

#define ALT_CAN_PROTO_CSTS_RXOK_SET_MSK   0x00000010

The mask used to set the ALT_CAN_PROTO_CSTS_RXOK register field value.

#define ALT_CAN_PROTO_CSTS_RXOK_CLR_MSK   0xffffffef

The mask used to clear the ALT_CAN_PROTO_CSTS_RXOK register field value.

#define ALT_CAN_PROTO_CSTS_RXOK_RESET   0x0

The reset value of the ALT_CAN_PROTO_CSTS_RXOK register field.

#define ALT_CAN_PROTO_CSTS_RXOK_GET (   value)    (((value) & 0x00000010) >> 4)

Extracts the ALT_CAN_PROTO_CSTS_RXOK field value from a register.

#define ALT_CAN_PROTO_CSTS_RXOK_SET (   value)    (((value) << 4) & 0x00000010)

Produces a ALT_CAN_PROTO_CSTS_RXOK register field value suitable for setting the register.

#define ALT_CAN_PROTO_CSTS_EPASS_E_ACT   0x0

Enumerated value for register field ALT_CAN_PROTO_CSTS_EPASS

The CAN Core is in the error active state. It normally takes part in bus communication and sends an active error flag when an error has been detected.

#define ALT_CAN_PROTO_CSTS_EPASS_E_PASSIVE   0x1

Enumerated value for register field ALT_CAN_PROTO_CSTS_EPASS

The CAN Core is in the error passive state as defined in the CAN Specification.

#define ALT_CAN_PROTO_CSTS_EPASS_LSB   5

The Least Significant Bit (LSB) position of the ALT_CAN_PROTO_CSTS_EPASS register field.

#define ALT_CAN_PROTO_CSTS_EPASS_MSB   5

The Most Significant Bit (MSB) position of the ALT_CAN_PROTO_CSTS_EPASS register field.

#define ALT_CAN_PROTO_CSTS_EPASS_WIDTH   1

The width in bits of the ALT_CAN_PROTO_CSTS_EPASS register field.

#define ALT_CAN_PROTO_CSTS_EPASS_SET_MSK   0x00000020

The mask used to set the ALT_CAN_PROTO_CSTS_EPASS register field value.

#define ALT_CAN_PROTO_CSTS_EPASS_CLR_MSK   0xffffffdf

The mask used to clear the ALT_CAN_PROTO_CSTS_EPASS register field value.

#define ALT_CAN_PROTO_CSTS_EPASS_RESET   0x0

The reset value of the ALT_CAN_PROTO_CSTS_EPASS register field.

#define ALT_CAN_PROTO_CSTS_EPASS_GET (   value)    (((value) & 0x00000020) >> 5)

Extracts the ALT_CAN_PROTO_CSTS_EPASS field value from a register.

#define ALT_CAN_PROTO_CSTS_EPASS_SET (   value)    (((value) << 5) & 0x00000020)

Produces a ALT_CAN_PROTO_CSTS_EPASS register field value suitable for setting the register.

#define ALT_CAN_PROTO_CSTS_EWARN_E_BELOWLIMIT   0x0

Enumerated value for register field ALT_CAN_PROTO_CSTS_EWARN

Both error counters are below the error warning limit of 96.

#define ALT_CAN_PROTO_CSTS_EWARN_E_ABOVELIMIT   0x1

Enumerated value for register field ALT_CAN_PROTO_CSTS_EWARN

At least one of the error counters in the EML has reached the error warning limit of 96.

#define ALT_CAN_PROTO_CSTS_EWARN_LSB   6

The Least Significant Bit (LSB) position of the ALT_CAN_PROTO_CSTS_EWARN register field.

#define ALT_CAN_PROTO_CSTS_EWARN_MSB   6

The Most Significant Bit (MSB) position of the ALT_CAN_PROTO_CSTS_EWARN register field.

#define ALT_CAN_PROTO_CSTS_EWARN_WIDTH   1

The width in bits of the ALT_CAN_PROTO_CSTS_EWARN register field.

#define ALT_CAN_PROTO_CSTS_EWARN_SET_MSK   0x00000040

The mask used to set the ALT_CAN_PROTO_CSTS_EWARN register field value.

#define ALT_CAN_PROTO_CSTS_EWARN_CLR_MSK   0xffffffbf

The mask used to clear the ALT_CAN_PROTO_CSTS_EWARN register field value.

#define ALT_CAN_PROTO_CSTS_EWARN_RESET   0x0

The reset value of the ALT_CAN_PROTO_CSTS_EWARN register field.

#define ALT_CAN_PROTO_CSTS_EWARN_GET (   value)    (((value) & 0x00000040) >> 6)

Extracts the ALT_CAN_PROTO_CSTS_EWARN field value from a register.

#define ALT_CAN_PROTO_CSTS_EWARN_SET (   value)    (((value) << 6) & 0x00000040)

Produces a ALT_CAN_PROTO_CSTS_EWARN register field value suitable for setting the register.

#define ALT_CAN_PROTO_CSTS_BOFF_E_NOTBUSOFF   0x0

Enumerated value for register field ALT_CAN_PROTO_CSTS_BOFF

The CAN module is not Bus_Off.

#define ALT_CAN_PROTO_CSTS_BOFF_E_BUSOFF   0x1

Enumerated value for register field ALT_CAN_PROTO_CSTS_BOFF

The CAN module is in Bus_Off state.

#define ALT_CAN_PROTO_CSTS_BOFF_LSB   7

The Least Significant Bit (LSB) position of the ALT_CAN_PROTO_CSTS_BOFF register field.

#define ALT_CAN_PROTO_CSTS_BOFF_MSB   7

The Most Significant Bit (MSB) position of the ALT_CAN_PROTO_CSTS_BOFF register field.

#define ALT_CAN_PROTO_CSTS_BOFF_WIDTH   1

The width in bits of the ALT_CAN_PROTO_CSTS_BOFF register field.

#define ALT_CAN_PROTO_CSTS_BOFF_SET_MSK   0x00000080

The mask used to set the ALT_CAN_PROTO_CSTS_BOFF register field value.

#define ALT_CAN_PROTO_CSTS_BOFF_CLR_MSK   0xffffff7f

The mask used to clear the ALT_CAN_PROTO_CSTS_BOFF register field value.

#define ALT_CAN_PROTO_CSTS_BOFF_RESET   0x0

The reset value of the ALT_CAN_PROTO_CSTS_BOFF register field.

#define ALT_CAN_PROTO_CSTS_BOFF_GET (   value)    (((value) & 0x00000080) >> 7)

Extracts the ALT_CAN_PROTO_CSTS_BOFF field value from a register.

#define ALT_CAN_PROTO_CSTS_BOFF_SET (   value)    (((value) << 7) & 0x00000080)

Produces a ALT_CAN_PROTO_CSTS_BOFF register field value suitable for setting the register.

#define ALT_CAN_PROTO_CSTS_PER_E_NONE   0x0

Enumerated value for register field ALT_CAN_PROTO_CSTS_PER

No parity error detected since last read access.

#define ALT_CAN_PROTO_CSTS_PER_E_ERRORDETECTED   0x1

Enumerated value for register field ALT_CAN_PROTO_CSTS_PER

The Parity CheckMechanism has detected a parity error in the Message RAM, this bit will be reset if Status Register is read

#define ALT_CAN_PROTO_CSTS_PER_LSB   8

The Least Significant Bit (LSB) position of the ALT_CAN_PROTO_CSTS_PER register field.

#define ALT_CAN_PROTO_CSTS_PER_MSB   8

The Most Significant Bit (MSB) position of the ALT_CAN_PROTO_CSTS_PER register field.

#define ALT_CAN_PROTO_CSTS_PER_WIDTH   1

The width in bits of the ALT_CAN_PROTO_CSTS_PER register field.

#define ALT_CAN_PROTO_CSTS_PER_SET_MSK   0x00000100

The mask used to set the ALT_CAN_PROTO_CSTS_PER register field value.

#define ALT_CAN_PROTO_CSTS_PER_CLR_MSK   0xfffffeff

The mask used to clear the ALT_CAN_PROTO_CSTS_PER register field value.

#define ALT_CAN_PROTO_CSTS_PER_RESET   0x0

The reset value of the ALT_CAN_PROTO_CSTS_PER register field.

#define ALT_CAN_PROTO_CSTS_PER_GET (   value)    (((value) & 0x00000100) >> 8)

Extracts the ALT_CAN_PROTO_CSTS_PER field value from a register.

#define ALT_CAN_PROTO_CSTS_PER_SET (   value)    (((value) << 8) & 0x00000100)

Produces a ALT_CAN_PROTO_CSTS_PER register field value suitable for setting the register.

#define ALT_CAN_PROTO_CSTS_OFST   0x4

The byte offset of the ALT_CAN_PROTO_CSTS register from the beginning of the component.

#define ALT_CAN_PROTO_CSTS_ADDR (   base)    ALT_CAST(void *, (ALT_CAST(char *, (base)) + ALT_CAN_PROTO_CSTS_OFST))

The address of the ALT_CAN_PROTO_CSTS register.

Typedef Documentation

The typedef declaration for register ALT_CAN_PROTO_CSTS.