Golioth Firmware SDK
Loading...
Searching...
No Matches
cellular.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2025 Golioth, Inc.
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
7
#ifdef __cplusplus
8
extern
"C"
9
{
10
#endif
11
12
#pragma once
13
14
#include <stdint.h>
15
16
#include <
golioth/net_info.h
>
17
18
enum
golioth_cellular_type
19
{
20
GOLIOTH_CELLULAR_TYPE_LTECATM
,
21
GOLIOTH_CELLULAR_TYPE_NBIOT
,
22
};
23
25
struct
golioth_cellular_info
26
{
28
enum
golioth_cellular_type
type
;
30
uint16_t
mcc
;
32
uint16_t
mnc
;
34
uint32_t
id
;
36
int8_t
strength
;
37
};
38
46
enum
golioth_status
golioth_net_info_cellular_append
(
struct
golioth_net_info *info,
47
const
struct
golioth_cellular_info
*cell);
48
49
#ifdef __cplusplus
50
}
51
#endif
golioth_net_info_cellular_append
enum golioth_status golioth_net_info_cellular_append(struct golioth_net_info *info, const struct golioth_cellular_info *cell)
golioth_cellular_type
golioth_cellular_type
Definition
cellular.h:19
GOLIOTH_CELLULAR_TYPE_NBIOT
@ GOLIOTH_CELLULAR_TYPE_NBIOT
Definition
cellular.h:21
GOLIOTH_CELLULAR_TYPE_LTECATM
@ GOLIOTH_CELLULAR_TYPE_LTECATM
Definition
cellular.h:20
golioth_status
golioth_status
Definition
golioth_status.h:37
net_info.h
golioth_cellular_info
Cellular tower information, which is passed to golioth_net_info_cellular_append()
Definition
cellular.h:26
golioth_cellular_info::mnc
uint16_t mnc
Definition
cellular.h:32
golioth_cellular_info::type
enum golioth_cellular_type type
Definition
cellular.h:28
golioth_cellular_info::mcc
uint16_t mcc
Definition
cellular.h:30
golioth_cellular_info::strength
int8_t strength
Definition
cellular.h:36
golioth_cellular_info::id
uint32_t id
Definition
cellular.h:34
include
golioth
net_info
cellular.h
Generated on Thu Aug 14 2025 04:44:34 for Golioth Firmware SDK by
1.10.0