 |
TMS320F28335 Library
1.0
Documentation
|
|
CAN Mailbox Strucutre for instantiation of CAN-Mailboxes.
int16 init_CAN(CanInterface, Uint32)
Initializes a CAN interface with the passed baud rate.
int int16
16 Bit Variable: - 32.768 .. 32.767
int16 CAN_sendDataOnMailbox(CanInterface, Uint16, Uint64 *, Uint16)
CAN_send - Sends a CAN message.
int16 CAN_mailboxActive(CanInterface, Uint16)
Checks if the passed mailbox is in use already (active).
unsigned long long Uint64
64 Bit Variable: 0 .. 18.446.744.073.709.551.615
void CAN_getDataFromMailbox(CanInterface, Uint16, Uint64 *, Uint16)
Gets the content of a received CAN message on specific mailbox and writes it to data-address.
Uint8 messageLength
Set amount of bytes to send or receive: (0-8)
Uint32 Message_ID
Message Identifier for CAN-Mailbox (standard: 11 Bit, extended: 29 Bit)
CAN_direction direction
Set mailbox-direction: CAN_Tx / CAN_Rx.
void CAN_getMailboxInformation(CanInterface, Uint16, CanMailbox *)
Gets mailbox information.
struct _CanMailbox CanMailbox
CAN Mailbox Strucutre for instantiation of CAN-Mailboxes.
Uint8 extended
Set standard/extended Identifier-Mode: (standard = 0, extended = 1)
Header file for global defines.
CAN Interface: Assign GPIOs to CAN_A or CAN_B.
enum _CAN_direction CAN_direction
The enumeration for CAN directions.
int16 CAN_dataAvailable(CanInterface)
Checks if a CAN message is available in the passed CAN interface.
unsigned int Uint16
16 Bit Variable: 0 .. 65.535
void CAN_setupMailbox(CanInterface, Uint16, CanMailbox *)
CAN_setup_Mailbox - Configures Register for a CAN mailbox.
unsigned char Uint8
8 Bit Variable: 0 .. 255
int16 CAN_dataAvailableAtMailbox(CanInterface, Uint16)
Checks if a CAN message is available in the passed CAN mailbox.
struct _CanInterface CanInterface
CAN Interface: Assign GPIOs to CAN_A or CAN_B.
int16 CAN_getNextInactiveMailbox(CanInterface)
Get the lowest inactive mailbox from a CAN interface (0-31).
Uint8 active
Activate / Deactivate mailbox: 0 = inactive, 1= active.
void CAN_resetMailbox(CanInterface, Uint16)
Erases the "new message" bit for the passed mailbox.
unsigned long Uint32
32 Bit Variable: 0 .. 4.294.967.295
_CAN_direction
The enumeration for CAN directions.