Zephyr API Documentation 4.0.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
stats.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2024 Trackunit Corporation
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#include <zephyr/types.h>
8#include <zephyr/kernel.h>
9
10#ifndef ZEPHYR_MODEM_STATS_
11#define ZEPHYR_MODEM_STATS_
12
18struct modem_stats_buffer {
19 sys_snode_t node;
20 char name[CONFIG_MODEM_STATS_BUFFER_NAME_SIZE];
21 uint32_t max_used;
22 uint32_t size;
23};
24
36void modem_stats_buffer_init(struct modem_stats_buffer *buffer,
37 const char *name, uint32_t size);
38
48void modem_stats_buffer_advertise_length(struct modem_stats_buffer *buffer, uint32_t length);
49
50#endif /* ZEPHYR_MODEM_STATS_ */
struct _snode sys_snode_t
Single-linked list node structure.
Definition slist.h:39
Public kernel APIs.
void modem_stats_buffer_init(struct modem_stats_buffer *buffer, const char *name, uint32_t size)
Initialize modem statistics buffer.
void modem_stats_buffer_advertise_length(struct modem_stats_buffer *buffer, uint32_t length)
Advertise modem statistics buffer size.
__UINT32_TYPE__ uint32_t
Definition stdint.h:90