Controller Area Network (CAN)
void
(uint32_t ui32Base, tCANBitClkParms
∗
psClkParms)
void
(uint32_t ui32Base, tCANBitClkParms
∗
psClkParms)
void
(uint32_t ui32Base)
void
(uint32_t ui32Base)
bool
(uint32_t
ui32Base,
uint32_t
∗
pui32RxCount,
uint32_t
∗
pui32TxCount)
void
(uint32_t ui32Base)
void
(uint32_t ui32Base, uint32_t ui32IntClr)
void
(uint32_t ui32Base, uint32_t ui32IntFlags)
void
(uint32_t ui32Base, uint32_t ui32IntFlags)
uint32_t
(uint32_t ui32Base, tCANIntStsReg eIntStsReg)
void
(uint32_t ui32Base, uint32_t ui32ObjID)
void
(uint32_t ui32Base,
uint32_t ui32ObjID, tCANMsgObject
∗
pMsgObject, bool bClrPendingInt)
void
(uint32_t ui32Base,
uint32_t ui32ObjID, tCANMsgObject
∗
pMsgObject, tMsgObjType eMsgType)
bool
(uint32_t ui32Base)
void
(uint32_t ui32Base, bool bAutoRetry)
uint32_t
(uint32_t ui32Base, tCANStsReg eStatusReg)
6.2.1
Function Documentation
6.2.1.1
ROM_CANBitRateSet
This function is used to set the CAN bit timing values to a nominal setting based on a desired bit
rate.
Prototype:
uint32_t
ROM_CANBitRateSet(uint32_t ui32Base,
uint32_t ui32SourceClock,
uint32_t ui32BitRate)
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_CANBitRateSet
is a function pointer located at
ROM_CANTABLE[16]
.
Parameters:
ui32Base
is the base address of the CAN controller.
ui32SourceClock
is the system clock for the device in Hz.
ui32BitRate
is the desired bit rate.
Description:
This function will set the CAN bit timing for the bit rate passed in the
ui32BitRate
parame-
ter based on the
ui32SourceClock
parameter. Since the CAN clock is based off of the sys-
tem clock the calling function should pass in the source clock rate either by retrieving it from
or using a specific value in Hz. The CAN bit timing is calculated as-
suming a minimal amount of propagation delay, which will work for most cases where the
April 8, 2013
55
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...