2016-04-08 10:52:20 +02:00
|
|
|
#pragma once
|
|
|
|
|
2016-04-09 22:31:38 +02:00
|
|
|
#include <stdbool.h>
|
|
|
|
#include <usbd_def.h>
|
|
|
|
#include <queue.h>
|
2016-04-15 13:56:37 +02:00
|
|
|
#include <led.h>
|
2016-04-08 10:52:40 +02:00
|
|
|
|
2016-04-08 22:57:28 +02:00
|
|
|
extern USBD_ClassTypeDef USBD_GS_CAN;
|
|
|
|
|
2016-04-15 13:56:37 +02:00
|
|
|
uint8_t USBD_GS_CAN_Init(USBD_HandleTypeDef *pdev, queue_t *q_frame_pool, queue_t *q_from_host, led_data_t *leds);
|
2016-04-08 22:57:28 +02:00
|
|
|
void USBD_GS_CAN_SetChannel(USBD_HandleTypeDef *pdev, uint8_t channel, CAN_HandleTypeDef* handle);
|
2016-04-09 22:31:38 +02:00
|
|
|
bool USBD_GS_CAN_TxReady(USBD_HandleTypeDef *pdev);
|
|
|
|
uint8_t USBD_GS_CAN_Transmit(USBD_HandleTypeDef *pdev, uint8_t *buf, uint16_t len);
|
2016-04-14 21:12:18 +02:00
|
|
|
uint8_t USBD_GS_CAN_PrepareReceive(USBD_HandleTypeDef *pdev);
|