31 lines
718 B
C
31 lines
718 B
C
//
|
|
// Created by cfif on 03.06.2024.
|
|
//
|
|
|
|
#ifndef SMART_COMPONENTS_CANPORTS_H
|
|
#define SMART_COMPONENTS_CANPORTS_H
|
|
|
|
#include "CanSerialPortFrame.h"
|
|
|
|
typedef struct {
|
|
tCanSerialPortFrameArtery Can1;
|
|
tSerialPortFrameIO Can1_IO;
|
|
|
|
tCanSerialPortFrameArtery Can2;
|
|
tSerialPortFrameIO Can2_IO;
|
|
} tCanPorts;
|
|
|
|
extern tCanPorts CAN_PORTS;
|
|
|
|
void CanPorts_Init();
|
|
|
|
void CanPort_SetSpeed(can_type *CANx, eCanBaudRate canBaudRate);
|
|
|
|
void CanPort_GetSpeed(can_type *CANx, eCanBaudRate *canBaudRate);
|
|
|
|
void CanPort_SetFilter(can_type *CANx,
|
|
can_filter_init_type *can_filter0_init_struct,
|
|
can_filter_init_type *can_filter1_init_struct);
|
|
|
|
#endif //SMART_COMPONENTS_CANPORTS_H
|