Developer World
Spresense SDK Library v3.3.0-375c679
lapi.h
1/****************************************************************************
2 * apps/include/lte/lapi.h
3 *
4 * Licensed to the Apache Software Foundation (ASF) under one or more
5 * contributor license agreements. See the NOTICE file distributed with
6 * this work for additional information regarding copyright ownership. The
7 * ASF licenses this file to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance with the
9 * License. You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
15 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
16 * License for the specific language governing permissions and limitations
17 * under the License.
18 *
19 ****************************************************************************/
20
21#ifndef __APPS_INCLUDE_LTE_LAPI_H
22#define __APPS_INCLUDE_LTE_LAPI_H
23
24/****************************************************************************
25 * Included Files
26 ****************************************************************************/
27
28#include <stdint.h>
29#include "lte/lte_api.h"
30
31/****************************************************************************
32 * Pre-processor Definitions
33 ****************************************************************************/
34
35/****************************************************************************
36 * Public Types
37 ****************************************************************************/
38
39#ifdef __cplusplus
40#define EXTERN extern "C"
41extern "C"
42{
43#else
44#define EXTERN extern
45#endif
46
47/****************************************************************************
48 * Public Function Prototyppes
49 ****************************************************************************/
50
51/****************************************************************************
52 * Name: lapi_evtinit
53 ****************************************************************************/
54
55int lapi_evtinit(FAR const char *mqname);
56
57/****************************************************************************
58 * Name: lapi_evtdestoy
59 ****************************************************************************/
60
61void lapi_evtdestoy(void);
62
63/****************************************************************************
64 * Name: lapi_evtyield
65 ****************************************************************************/
66
67int lapi_evtyield(int timeout_ms);
68
69/****************************************************************************
70 * Name: lapi_req
71 ****************************************************************************/
72
73int lapi_req(uint32_t cmdid, FAR void *inp, size_t insz, FAR void *outp,
74 size_t outsz, FAR void *cb);
75
76#undef EXTERN
77#ifdef __cplusplus
78}
79#endif
80
81#endif /* __APPS_INCLUDE_LTE_LAPI_H */