Controller Area Network (CAN)
Prototype:
void
ROM_CANRetrySet(uint32_t ui32Base,
bool bAutoRetry)
ROM Location:
ROM_APITABLE
is an array of pointers located at
0x0100.0010
.
ROM_CANTABLE
is an array of pointers located at
ROM_APITABLE[18]
.
ROM_CANRetrySet
is a function pointer located at
ROM_CANTABLE[14]
.
Parameters:
ui32Base
is the base address of the CAN controller.
bAutoRetry
enables automatic retransmission.
Description:
Enables or disables automatic retransmission of messages with detected errors. If
bAutoRetry
is
true
, then automatic retransmission is enabled, otherwise it is disabled.
Returns:
None.
6.2.1.17 ROM_CANStatusGet
Reads one of the controller status registers.
Prototype:
uint32_t
ROM_CANStatusGet(uint32_t ui32Base,
tCANStsReg eStatusReg)
ROM Location:
ROM_APITABLE
is an array of pointers located at
0x0100.0010
.
ROM_CANTABLE
is an array of pointers located at
ROM_APITABLE[18]
.
ROM_CANStatusGet
is a function pointer located at
ROM_CANTABLE[8]
.
Parameters:
ui32Base
is the base address of the CAN controller.
eStatusReg
is the status register to read.
Description:
Reads a status register of the CAN controller and returns it to the caller. The different status
registers are:
CAN_STS_CONTROL
- the main controller status
CAN_STS_TXREQUEST
- bit mask of objects pending transmission
CAN_STS_NEWDAT
- bit mask of objects with new data
CAN_STS_MSGVAL
- bit mask of objects with valid configuration
When reading the main controller status register, a pending status interrupt is cleared. This
should be used in the interrupt handler for the CAN controller if the cause is a status interrupt.
The controller status register fields are as follows:
CAN_STATUS_BUS_OFF
- controller is in bus-off condition
66
April 8, 2013
Summary of Contents for Tiva TM4C123GH6PM
Page 26: ...Boot Loader 26 April 8 2013...
Page 68: ...Controller Area Network CAN 68 April 8 2013...
Page 122: ...Hibernation Module 122 April 8 2013...
Page 136: ...Inter Integrated Circuit I2C 136 April 8 2013...
Page 152: ...Memory Protection Unit MPU 152 April 8 2013...
Page 174: ...Pulse Width Modulator PWM Returns None 174 April 8 2013...
Page 196: ...Synchronous Serial Interface SSI 196 April 8 2013...
Page 222: ...System Control 222 April 8 2013...
Page 270: ...UART 270 April 8 2013...
Page 296: ...uDMA Controller 296 April 8 2013...
Page 351: ...April 8 2013 351...