Spresense Arduino Library v3.4.5-a526a83
Loading...
Searching...
No Matches
LTEDefinition.h
Go to the documentation of this file.
1/*
2 * LTEDefinition.h - LTEDefinition include file for Spresense Arduino
3 * Copyright 2019, 2021 Sony Semiconductor Solutions Corporation
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19
27
28#ifndef __SPRESENSE_LTEDEFINITION_H__
29#define __SPRESENSE_LTEDEFINITION_H__
30
37
38#include <string.h>
39
40/****************************************************************************
41 * Pre-processor Definitions
42 ****************************************************************************/
43
44#ifdef BRD_DEBUG
45#define LTEDBG(format, ...) ::printf("DEBUG: " format, ##__VA_ARGS__)
46#else
47#define LTEDBG(format, ...)
48#endif
49#define LTEERR(format, ...) ::printf("ERROR: " format, ##__VA_ARGS__)
50
57
58#define LTE_NET_APN_MAXLEN (101)
59#define LTE_NET_USER_MAXLEN (64)
60#define LTE_NET_PASSWORD_MAXLEN (32)
61
63
78
90
97
103
105
116
117#endif // __SPRESENSE_LTEDEFINITION_H__
LTENetworkRatType
RAT(Radio Access Technology)
Definition LTEDefinition.h:111
@ LTE_NET_RAT_NBIOT
Definition LTEDefinition.h:114
@ LTE_NET_RAT_UNKNOWN
Definition LTEDefinition.h:112
@ LTE_NET_RAT_CATM
Definition LTEDefinition.h:113
LTENetworkAuthType
[en] Authentication type. [ja] 認証形式
Definition LTEDefinition.h:98
LTEModemStatus
[en] Status code of the modem. [ja] モデムのステータスコード
Definition LTEDefinition.h:70
LTENetworkIPType
[en] Internet protocol type. [ja] インターネット・プロトコル形式
Definition LTEDefinition.h:85
@ LTE_NET_AUTHTYPE_CHAP
Definition LTEDefinition.h:101
@ LTE_NET_AUTHTYPE_PAP
Definition LTEDefinition.h:100
@ LTE_NET_AUTHTYPE_NONE
Definition LTEDefinition.h:99
@ LTE_READY
Definition LTEDefinition.h:75
@ LTE_IDLE
Definition LTEDefinition.h:72
@ LTE_OFF
Definition LTEDefinition.h:76
@ LTE_ERROR
Definition LTEDefinition.h:71
@ LTE_SEARCHING
Definition LTEDefinition.h:74
@ LTE_CONNECTING
Definition LTEDefinition.h:73
@ LTE_NET_IPTYPE_V4
Definition LTEDefinition.h:86
@ LTE_NET_IPTYPE_V6
Definition LTEDefinition.h:87
@ LTE_NET_IPTYPE_V4V6
Definition LTEDefinition.h:88