edu16_sbc/sbc_fw/lsense.h

43 lines
799 B
C

/*
* @file lsense.h
* @brief Light sensor management and command handling
*
* Created: 21.09.2025 05:53:32
* Author: ThePetrovich
*
* Copyright YKSA - Sakha Aerospace Systems, LLC.
* See the LICENSE file for details.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef LSENSE_H
#define LSENSE_H
#include <Arduino.h>
#define NUM_BUSES 3
#define SENSORS_PER_BUS 2
enum {
BUS_X = 0, // X-axis (bus 0)
BUS_Y = 1, // Y-axis (bus 1)
BUS_Z = 2 // Z-axis (bus 2)
};
enum {
SENSOR_NEG = 0, // Negative sensor (addresses 0)
SENSOR_POS = 1 // Positive sensor (addresses 1)
};
/**
* @brief Send light sensor presence information via serial
*/
void lsense_cmd_presence(void);
/**
* @brief Read and send light sensor data via serial
*/
void lsense_cmd_read(void);
#endif // LSENSE_H