38 lines
846 B
C
38 lines
846 B
C
//
|
|
// Created by xemon on 04.01.23.
|
|
//
|
|
|
|
#ifndef UVEOS_ON_NATION_PWMSIM7600E_H
|
|
#define UVEOS_ON_NATION_PWMSIM7600E_H
|
|
|
|
#include "GpioPin.h"
|
|
|
|
typedef enum {
|
|
CHIP_ERA = 0,
|
|
CHIP_COMERS = 1,
|
|
} tThisSimChip;
|
|
|
|
typedef struct {
|
|
struct {
|
|
tGpioPin PowerGsm;
|
|
tGpioPin ChargeC;
|
|
tGpioPin disCharge;
|
|
tGpioPin powerKey;
|
|
tGpioPin PowerCheckGsm;
|
|
} gsm;
|
|
tGpioPin dtr;
|
|
tGpioPin powerStatus;
|
|
tGpioPin reset;
|
|
tGpioPin convertOE;
|
|
tGpioPin LNASupport;
|
|
tGpioPin SimSelector;
|
|
tThisSimChip thisSimChip;
|
|
} tSim7600ePower;
|
|
|
|
bool PwmSim7600e_Startup(tSim7600ePower *env);
|
|
bool PwmSim7600e_ShutDown(tSim7600ePower *env);
|
|
void PwmSim7600e_SimChipSelector(tSim7600ePower *env, tThisSimChip thisSimChip);
|
|
bool PwmSim7600e_WhiteIsLoad(tSim7600ePower *env);
|
|
|
|
#endif //UVEOS_ON_NATION_PWMSIM7600E_H
|