WPILibC++ 2025.1.1
Loading...
Searching...
No Matches
wpimath.npb.h
Go to the documentation of this file.
1// Copyright (c) FIRST and other WPILib contributors.
2// Open Source Software; you can modify and/or share it under the terms of
3// the WPILib BSD license file in the root directory of this project.
4/* Automatically generated nanopb header */
5/* Generated by nanopb-0.4.9 */
6
7#ifndef PB_WPI_PROTO_WPIMATH_NPB_H_INCLUDED
8#define PB_WPI_PROTO_WPIMATH_NPB_H_INCLUDED
9#include <pb.h>
10#include <span>
11#include <string_view>
12
13#if PB_PROTO_HEADER_VERSION != 40
14#error Regenerate this file with the current version of nanopb generator.
15#endif
16
17/* Struct definitions */
19 static const pb_msgdesc_t* msg_descriptor(void) noexcept;
20 static std::string_view msg_name(void) noexcept;
21 static pb_filedesc_t file_descriptor(void) noexcept;
22
23 uint32_t num_rows;
24 uint32_t num_cols;
27
29 static const pb_msgdesc_t* msg_descriptor(void) noexcept;
30 static std::string_view msg_name(void) noexcept;
31 static pb_filedesc_t file_descriptor(void) noexcept;
32
35
36
37/* Initializer values for message structs */
38#define wpi_proto_ProtobufMatrix_init_default {0, 0, {{NULL}, NULL}}
39#define wpi_proto_ProtobufVector_init_default {{{NULL}, NULL}}
40#define wpi_proto_ProtobufMatrix_init_zero {0, 0, {{NULL}, NULL}}
41#define wpi_proto_ProtobufVector_init_zero {{{NULL}, NULL}}
42
43/* Field tags (for use in manual encoding/decoding) */
44#define wpi_proto_ProtobufMatrix_num_rows_tag 1
45#define wpi_proto_ProtobufMatrix_num_cols_tag 2
46#define wpi_proto_ProtobufMatrix_data_tag 3
47#define wpi_proto_ProtobufVector_rows_tag 1
48
49/* Struct field encoding specification for nanopb */
50#define wpi_proto_ProtobufMatrix_FIELDLIST(X, a) \
51X(a, STATIC, SINGULAR, UINT32, num_rows, 1) \
52X(a, STATIC, SINGULAR, UINT32, num_cols, 2) \
53X(a, CALLBACK, REPEATED, DOUBLE, data, 3)
54#define wpi_proto_ProtobufMatrix_CALLBACK pb_default_field_callback
55#define wpi_proto_ProtobufMatrix_DEFAULT NULL
56
57#define wpi_proto_ProtobufVector_FIELDLIST(X, a) \
58X(a, CALLBACK, REPEATED, DOUBLE, rows, 1)
59#define wpi_proto_ProtobufVector_CALLBACK pb_default_field_callback
60#define wpi_proto_ProtobufVector_DEFAULT NULL
61
62/* Maximum encoded size of messages (where known) */
63/* wpi_proto_ProtobufMatrix_size depends on runtime parameters */
64/* wpi_proto_ProtobufVector_size depends on runtime parameters */
65
66
67#endif
Definition wpimath.npb.h:18
uint32_t num_rows
Definition wpimath.npb.h:23
static const pb_msgdesc_t * msg_descriptor(void) noexcept
pb_callback_t data
Definition wpimath.npb.h:25
uint32_t num_cols
Definition wpimath.npb.h:24
static std::string_view msg_name(void) noexcept
static pb_filedesc_t file_descriptor(void) noexcept
Definition wpimath.npb.h:28
pb_callback_t rows
Definition wpimath.npb.h:33
static pb_filedesc_t file_descriptor(void) noexcept
static std::string_view msg_name(void) noexcept
static const pb_msgdesc_t * msg_descriptor(void) noexcept
Definition pb.h:414
Definition pb.h:322
Definition pb.h:331
struct _wpi_proto_ProtobufVector wpi_proto_ProtobufVector
struct _wpi_proto_ProtobufMatrix wpi_proto_ProtobufMatrix