Controller Area Network (CAN)
6.2.1.5
ROM_CANEnable
Enables the CAN controller.
Prototype:
void
ROM_CANEnable(uint32_t ui32Base)
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_CANEnable
is a function pointer located at
ROM_CANTABLE[2]
.
Parameters:
ui32Base
is the base address of the CAN controller to enable.
Description:
Enables the CAN controller for message processing. Once enabled, the controller will auto-
matically transmit any pending frames, and process any received frames. The controller can be
stopped by calling
. Prior to calling
should have been called to initialize the controller and the CAN bus clock should be configured
by calling
Returns:
None.
6.2.1.6
ROM_CANErrCntrGet
Reads the CAN controller error counter register.
Prototype:
bool
ROM_CANErrCntrGet(uint32_t ui32Base,
uint32_t *pui32RxCount,
uint32_t *pui32TxCount)
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_CANErrCntrGet
is a function pointer located at
ROM_CANTABLE[15]
.
Parameters:
ui32Base
is the base address of the CAN controller.
pui32RxCount
is a pointer to storage for the receive error counter.
pui32TxCount
is a pointer to storage for the transmit error counter.
Description:
Reads the error counter register and returns the transmit and receive error counts to the caller
along with a flag indicating if the controller receive counter has reached the error passive
limit. The values of the receive and transmit error counters are returned through the pointers
provided as parameters.
After this call,
∗
pui32RxCount
will hold the current receive error count and
∗
pui32TxCount
will
hold the current transmit error count.
58
April 8, 2013
Содержание Tiva TM4C123GH6PM
Страница 26: ...Boot Loader 26 April 8 2013...
Страница 68: ...Controller Area Network CAN 68 April 8 2013...
Страница 122: ...Hibernation Module 122 April 8 2013...
Страница 136: ...Inter Integrated Circuit I2C 136 April 8 2013...
Страница 152: ...Memory Protection Unit MPU 152 April 8 2013...
Страница 174: ...Pulse Width Modulator PWM Returns None 174 April 8 2013...
Страница 196: ...Synchronous Serial Interface SSI 196 April 8 2013...
Страница 222: ...System Control 222 April 8 2013...
Страница 270: ...UART 270 April 8 2013...
Страница 296: ...uDMA Controller 296 April 8 2013...
Страница 351: ...April 8 2013 351...