Loading...
Searching...
No Matches
can.h
1
8
9
#ifndef _CAN_H
10
#define _CAN_H
11
12
#include "stdint.h"
13
#include "stm32f439xx.h"
14
15
#include "params.h"
16
22
23
struct
CAN_RX_data
{
24
unsigned
int
dataL;
// data high register
25
unsigned
int
dataH;
// data low register
26
unsigned
int
address;
// CAN identifer
27
uint8_t CAN_number;
// either CAN2 or CAN1
28
};
29
30
void
CANGPIO_config();
31
void
CAN_Peripheral_config();
32
uint8_t find_empty_CAN_TX_mailbox(uint8_t);
33
uint8_t CAN_TX(uint8_t, uint8_t,
unsigned
int
,
unsigned
int
,
unsigned
int
);
34
uint8_t CAN_RX(
struct
CAN_RX_data
*);
35
36
#endif
CAN_RX_data
Definition
can.h:23
Australis-Avionics
Core
Inc
can
can.h
Generated by
1.13.2