Files
RP2350_MIDI_Lighter/Firmware/Core1_LED_Enable.h
Chris 89c875e38f - First complete version of firmware. Currently being tested in the rehearsal room
- Added bunch of screens, fonts and images
 - Added script to read out frame buffer (function currently disabled in Firmware)
2025-10-26 20:57:58 +01:00

44 lines
1.1 KiB
C

/*
* File: Core1_LED_Enable.h
* Created: Created: Wednesday August 2025 21:56:15
* Author: Chris
*/
#ifndef CORE1_LED_ENABLE_H
#define CORE1_LED_ENABLE_H
// ============================================================================================
// Includes
#include <stdint.h>
#include <stdbool.h>
// ============================================================================================
// Defines
// ============================================================================================
// Datatypes
typedef enum {
UNDEFINED,
NO_ERROR,
BUS_NO_SUPPLY,
BUS_UNDERVOLTAGE,
BUS_OVERVOLTAGE,
OVERCURRENT,
BUS_VOLTAGE_MEASUREMENT
} LED_Power_Error;
// ============================================================================================
// Function Declarations
void Core1_LED_Enable_Init();
void Core1_LED_Enable_Tick();
void Core1_LED_Enable_Update_INA260_BusVoltage(uint16_t voltage_mV);
bool Core1_LED_Enable_Get_Enable_Pin();
bool Core1_LED_Enable_Get_Alert_Pin();
LED_Power_Error Core1_LED_Enable_Get_Error();
#endif // CORE1_LED_ENABLE_H