ems/ems_c/driver/drv_4g.h

42 lines
1.3 KiB
C
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*****************************************************************************
* @copyright 1997-2050, . POWER SUPPLY CO., LTD.
* @file drv_4g.h
* @brief xx功能
* @author Gary
* @date 2024-09-21
* @remark
*****************************************************************************/
#ifndef DRV_4G_H
#define DRV_4G_H
#include <stdint.h>
#include <pthread.h>
#include <unistd.h>
#include <drv_comm.h>
#include "kit_log.h"
#include "kit_core.h"
#define MAX_CMD_4G_LEN 40 // 4G开启执行命令最大长度
// 4G初始化命令内容
typedef struct
{
uint8_t cmdContent[MAX_CMD_4G_LEN]; // 命令内容
uint8_t enable; // 是否使能0否1是
} drv_4g_t;
/*****************************************************************************
* @brief 打开4G
* @param[in] item: wifi驱动结构体指针
* @return 0-成功 1-失败
*****************************************************************************/
int drvOpen4G(drv_4g_t* item);
/*****************************************************************************
* @brief 关闭4G
* @param[in] item: 4G驱动结构体指针
* @return 0-成功 1-失败
*****************************************************************************/
int drvClose4G(drv_4g_t* item);
#endif // DRV_4G_H