40 #ifndef ESOS_HWXXX_ECAN_H
41 #define ESOS_HWXXX_ECAN_H
46 #define __ESOS_ECAN_HW_NUM_TX_BUFS 1
47 #define __ESOS_ECAN_HW_NUM_BUFS 8
49 #define __ESOS_ECAN_HW_ARE_MESSAGES_WAITING() ( _DMA1IF )
50 #define __ESOS_ECAN_HW_GET_BUFFER_ID() ( C1FIFO & 0x1F )
51 #define __ESOS_ECAN_HW_TX_IN_PROGRESS() ( C1TR01CONbits.TXREQ0 )
53 void __esos_ecan_hw_config_ecan (
void );
54 void __esos_ecan_hw_config_baud (
void );
55 void __esos_ecan_hw_config_rxFilter ( );
56 void __esos_ecan_hw_config_dma_tx (
void );
57 void __esos_ecan_hw_config_dma_rx (
void );
58 void __esos_ecan_hw_mark_message_received ( uint16_t u16_rx_buff_id );
59 void __esos_ecan_hw_format_and_send ( ECANMSG *p_temp_Msg, uint16_t u16_can_id, uint8_t u8_payload_len );