37 lines
710 B
C
37 lines
710 B
C
#ifndef CHARGER_GPIOS_H
|
|
#define CHARGER_GPIOS_H
|
|
|
|
#include "ChargerConfig.h"
|
|
#include "GpioPinInterface.h"
|
|
|
|
///Пины включения зарядника
|
|
typedef struct {
|
|
tGpioPin tab[GPIOS_NUM];
|
|
}tChrgEnPins;
|
|
|
|
/// Пины включения батареи в цепь
|
|
typedef struct {
|
|
tGpioPin tab[GPIOS_NUM];
|
|
}tBatEnPins;
|
|
|
|
/// Пины индикации
|
|
typedef struct {
|
|
tGpioPin tab[GPIOS_NUM];
|
|
}tLedPins;
|
|
|
|
/// Пин RE DE RS485
|
|
typedef struct {
|
|
tGpioPin reDePin;
|
|
}tRS485DirectionPins;
|
|
|
|
typedef struct {
|
|
tChrgEnPins chrgEnPins;
|
|
tBatEnPins batEnPins;
|
|
tLedPins ledPins;
|
|
tRS485DirectionPins directionPins;
|
|
}tGpios;
|
|
|
|
void Gpios_Init(tGpios *env);
|
|
|
|
#endif //CHARGER_GPIOS_H
|