7#define CAN_speed 125000U
13#define indirizzo_generico_CAN 0xAAAAAAA
16#define maschera_togli_bit31 0x1FFFFFFF
18#define CAN_EVENT_RECEIVE ARM_CAN_EVENT_RECEIVE
19#define CAN_EVENT_SEND_COMPLETE ARM_CAN_EVENT_SEND_COMPLETE
21extern volatile uint8_t
rx_data[];
22extern ARM_CAN_MSG_INFO rx_msg_info;
23extern uint32_t rx_obj_idx ;
25extern ARM_CAN_MSG_INFO tx_msg_info;
36extern ARM_DRIVER_CAN *
CANdrv;
ARM_DRIVER_CAN Driver_CAN1
Viene inclusa la Periferica CAN1.
void CAN_SignalUnitEvent(uint32_t event)
After that CAN aneded operation eand the interrupt is generated this signal function is called which ...
uint32_t volatile evento_CAN
This is the variable which resembles the flags from the communication.
unsigned char lettura_indirizzi_CAN(void)
The CAN bus address.
uint32_t tx_obj_idx
This is the variable which resembles the flags from the communication.
unsigned int indirizzo_CAN_della_scheda
Per ora lo assegnamo cos\i l'indirizzo della scheda.
bool messaggio_CAN_arrivato
This variable is set to true as soon as a reception have been concluded.
volatile int8_t vettore_istruzioni[8]
This is a copy of the received 8 bytes from the CAN.
void CAN_SignalObjectEvent(uint32_t obj_idx, uint32_t event)
After that CAN aneded operation eand the interrupt is generated this object function is called which ...
uint8_t tx_data[]
Transmission data vector.
volatile uint8_t rx_data[]
Received data vector.
void CAN_Inizialize(void)
The CAN initialization function.
bool messaggio_CAN_spedito
This variable is set to true as soon as a transmission have been concluded.