Zephyr API Documentation  3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
stats.h File Reference
#include <zephyr/types.h>
#include <zephyr/kernel.h>

Go to the source code of this file.

Functions

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.
 

Function Documentation

◆ modem_stats_buffer_advertise_length()

void modem_stats_buffer_advertise_length ( struct modem_stats_buffer *  buffer,
uint32_t  length 
)

Advertise modem statistics buffer size.

Parameters
bufferModem statistics buffer instance
lengthLength of buffer
Note
Invoke when buffer size changes
Safe to invoke from ISR

◆ modem_stats_buffer_init()

void modem_stats_buffer_init ( struct modem_stats_buffer *  buffer,
const char *  name,
uint32_t  size 
)

Initialize modem statistics buffer.

Parameters
bufferModem statistics buffer instance
nameName of buffer instance
sizeSize of buffer