You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
66 lines
3.0 KiB
C
66 lines
3.0 KiB
C
![]()
4 months ago
|
/*****************************************************************************
|
||
|
* file include/ca_land.h
|
||
|
* author YuLiang
|
||
|
* version 1.0.0
|
||
|
* date 20-Dec-2023
|
||
|
* brief This file provides all the headers of the LandPower protocol functions.
|
||
|
******************************************************************************
|
||
|
* Attention
|
||
|
*
|
||
|
* <h2><center>© COPYRIGHT(c) 2023 LandPower</center></h2>
|
||
|
*
|
||
|
* Redistribution and use in source and binary forms, with or without modification,
|
||
|
* are permitted provided that the following conditions are met:
|
||
|
* 1. Redistributions of source code must retain the above copyright notice,
|
||
|
* this list of conditions and the following disclaimer.
|
||
|
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||
|
* this list of conditions and the following disclaimer in the documentation
|
||
|
* and/or other materials provided with the distribution.
|
||
|
* 3. Neither the name of LandPower nor the names of its contributors may be used to
|
||
|
* endorse or promote products derived from this software without specific
|
||
|
* prior written permission.
|
||
|
*
|
||
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||
|
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||
|
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||
|
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
||
|
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||
|
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||
|
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||
|
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||
|
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||
|
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||
|
*
|
||
|
******************************************************************************/
|
||
|
|
||
|
#ifndef __CA_LAND_H__
|
||
|
#define __CA_LAND_H__
|
||
|
|
||
|
#ifdef CFG_DEV_TYPE_LAND_CA
|
||
|
/* Includes ------------------------------------------------------------------*/
|
||
|
|
||
|
/* Define --------------------------------------------------------------------*/
|
||
|
|
||
|
/* Exported types ------------------------------------------------------------*/
|
||
|
/* 私有协议状态结构体 */
|
||
|
typedef struct
|
||
|
{
|
||
|
bool is_connect; // 是否连接上服务器
|
||
|
bool is_send_data; // 是否向服务器发送数据
|
||
|
} ca_land_state_t;
|
||
|
|
||
|
/* Exported macro ------------------------------------------------------------*/
|
||
|
|
||
|
/* Extern global variables ---------------------------------------------------*/
|
||
|
|
||
|
/* Extern functions ----------------------------------------------------------*/
|
||
|
extern int32_t ca_land_init(void);
|
||
|
extern int32_t ca_land_init_after(void);
|
||
|
extern ca_land_state_t* ca_land_state_get(void);
|
||
|
extern void ca_land_state_show(void);
|
||
|
#endif
|
||
|
#endif
|
||
|
/************************ (C) COPYRIGHT LandPower ***** END OF FILE ****/
|
||
|
|
||
|
|