38 lines
1.1 KiB
C
38 lines
1.1 KiB
C
|
#ifndef __CANDRV_H__
|
||
|
#define __CANDRV_H__
|
||
|
|
||
|
/*******************************************************************************
|
||
|
* the includes
|
||
|
******************************************************************************/
|
||
|
#include "stm32l4xx_hal.h"
|
||
|
|
||
|
/*******************************************************************************
|
||
|
* the defines
|
||
|
******************************************************************************/
|
||
|
|
||
|
|
||
|
|
||
|
/*******************************************************************************
|
||
|
* the typedefs
|
||
|
******************************************************************************/
|
||
|
|
||
|
|
||
|
|
||
|
/*******************************************************************************
|
||
|
* the globals
|
||
|
******************************************************************************/
|
||
|
|
||
|
|
||
|
|
||
|
/*******************************************************************************
|
||
|
* the functions
|
||
|
******************************************************************************/
|
||
|
|
||
|
uint8_t CanDrv_Init(void);
|
||
|
uint8_t CanDrv_Txmsg(uint16_t id,uint8_t * data);
|
||
|
void CanDrv_Test(void);
|
||
|
uint8_t CanDrv_GetCANTxEmpty(void);
|
||
|
|
||
|
|
||
|
#endif
|