#ifndef _CAN_CONFIG_H_
#define _CAN_CONFIG_H_

#include "r_typedefs.h"
//typedef  char int8_t;
// typedef unsigned char uint8_t;
// typedef unsigned short uint16_t;//3360
// typedef unsigned int   uint32_t;//3360
//typedef unsigned int uint16_t;//Frescal
//typedef unsigned long   uint32_t;//Frescal
//��������
extern void AbortAllCanTx(void);
extern void CanBusoffRecover(void);
extern uint8_t GetBusOffState(void);
extern void NM_CanInit(void);
extern void CanRequestSleep(void);
extern void CanTxMsg(uint8_t SendCh, uint8_t *data, uint8_t len, uint32_t id);
extern void SetCanSTBLevel(uint8_t n);

extern void    CAN_SET_APP_SEND(uint8_t status);
extern void    CAN_SET_NM_SEND(uint8_t status);
extern void    CAN_SET_NM_REC(uint8_t status);
extern uint8_t CAN_GET_APP_SEND(void);
extern uint8_t CAN_GET_NM_SEND(void);
extern uint8_t CAN_GET_NM_REC(void);

#endif
