Download Stellaris Peripheral Driver Library User's Guide

Transcript
Stellaris Peripheral Driver Library User’s Guide
pulRegister is an unsigned long pointer to the first register of the CAN controller’s data registers. For example in order to use the IF1 register set on CAN controller 1 the value would
be: (CAN0_BASE + CAN_O_IF1DA1).
iSize is the number of bytes to copy from the CAN controller.
Description:
This function takes the steps necessary to copy data to a contiguous buffer in memory from the
non-contiguous data registers used by the CAN controller. This function is rarely used outside
of the CANMessageGet() function.
Returns:
None.
4.2.5.17 CANReadReg
Reads a CAN controller register.
Prototype:
unsigned long
CANReadReg(unsigned long ulRegAddress)
Parameters:
ulRegAddress is the full address of the CAN register to be read.
Description:
This function takes care of the synchronization necessary to read from a CAN controller register.
Note:
This function takes care of delay required to access CAN registers. This delay is required when
accessing CAN registers directly.
Returns:
The current value of the register that was requested by ulRegAddress.
4.2.5.18 CANRetryGet
Returns the current setting for auto-retransmission.
Prototype:
tBoolean
CANRetryGet(unsigned long ulBase)
Parameters:
ulBase is the base address of the CAN controller.
Description:
Reads the current setting of the auto-retransmission setting in the CAN controller and returns
it to the caller.
Returns:
true if automatic retransmission is enabled, false otherwise.
October 11, 2007
47