ESP32-P4 OBC Firmware
ESP-IDF firmware for Plant-B CubeSat OBC
 
Loading...
Searching...
No Matches
payload_utils.h File Reference

Sensor payload assembly utilities. More...

#include "pal_err.h"
#include "pal_log.h"
#include <stdint.h>
#include <string.h>

Go to the source code of this file.

Data Structures

struct  scd30_meas_t
 SCD30 CO₂, temperature, and humidity measurement. More...
 
struct  veml7700_meas_t
 VEML7700 ambient light level measurement. More...
 
struct  bme280_meas_t
 BME280 temperature, humidity and pressure measurement. More...
 
struct  sensor_payload_t
 Aggregated payload holding measurements from all sensors. More...
 

Functions

pal_err_t pl_set_scd30_data (sensor_payload_t *restrict pl, const scd30_meas_t *restrict data)
 Copy SCD30 measurement data into a sensor payload.
 
pal_err_t pl_set_veml7700_data (sensor_payload_t *restrict pl, const veml7700_meas_t *restrict data)
 Copy VEML7700 measurement data into a sensor payload.
 
pal_err_t pl_set_bme280_data (sensor_payload_t *restrict pl, const bme280_meas_t *restrict data)
 Copy BME280 measurement data into a sensor payload.
 

Detailed Description

Sensor payload assembly utilities.

Author
Adrien Chevrier

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see https://www.gnu.org/licenses/.

Version
0.1
Date
2026-02-05