include/pic24_ecan.h File Reference

Go to the source code of this file.

Functions

void formatStandardDataFrameECAN (ECANMSG *p_ecanmsg, uint16 u16_id, uint8 u8_len)
void formatExtendedDataFrameECAN (ECANMSG *p_ecanmsg, uint32 u32_id, uint8 u8_len)
uint32 getIdExtendedDataFrameECAN (ECANMSG *p_ecanmsg)


Detailed Description

ECAN Header File

Definition in file pic24_ecan.h.


Function Documentation

void formatExtendedDataFrameECAN ( ECANMSG *  p_ecanmsg,
uint32  u32_id,
uint8  u8_len 
)

Format an extended data frame u8_n for TX

Parameters:
p_ecanmsg pointer to message buffer (ECANMSG* )
u32_id Standard Identifier (11-bit)
u8_len Number of data bytes in the message

Definition at line 77 of file pic24_ecan.c.

void formatStandardDataFrameECAN ( ECANMSG *  p_ecanmsg,
uint16  u16_id,
uint8  u8_len 
)

Format a standard data frame u8_n for TX

Parameters:
p_ecanmsg pointer to message buffer (ECANMSG* )
u16_id Standard Identifier (11-bit)
u8_len Number of data bytes in the message

Definition at line 57 of file pic24_ecan.c.

uint32 getIdExtendedDataFrameECAN ( ECANMSG *  p_ecanmsg  ) 

Extract the 29-bit message id from an extended data frame

Parameters:
p_ecanmsg pointer to RX message buffer (ECANMSG* )
Returns:
29-bit message id

Definition at line 96 of file pic24_ecan.c.


Generated on Sun Mar 15 11:14:22 2009 for PIC24 Support Libraries by  doxygen 1.5.8