001/* Copyright (C) Cross The Road Electronics 2024 */ 002package com.ctre.phoenix.led; 003 004/** 005 * The various status frames from CANdle 006 */ 007public enum CANdleStatusFrame { 008 /** 009 * General status frame 010 * Includes: 011 * - Battery Voltage 012 * - Current Measurement 013 * - Temperature 014 * - Faults 015 * - Sticky Faults 016 */ 017 CANdleStatusFrame_Status_1_General(0x041400), 018 /** 019 * Startup frame, this is only sent out once 020 */ 021 CANdleStatusFrame_Status_2_Startup(0x041440), 022 /** 023 * Firmware status, this is sent until API gets it, then no longer sends again. 024 */ 025 CANdleStatusFrame_Status_3_FirmwareApiStatus(0x041480), 026 /** 027 * Status frame regarding LED control. Is not used in API. 028 */ 029 CANdleStatusFrame_Status_4_ControlTelem(0x0414C0), 030 /** 031 * Status frame regarding Neopixel generation. Is not used in API. 032 */ 033 CANdleStatusFrame_Status_5_PixelPulseTrain(0x041500), 034 /** 035 * The bottom 4 pixels' state. Is not used in API. 036 */ 037 CANdleStatusFrame_Status_6_BottomPixels(0x041540), 038 /** 039 * The top 4 pixels' state. Is not used in API. 040 */ 041 CANdleStatusFrame_Status_7_TopPixels(0x041580); 042 043 044 final public int value; 045 046 CANdleStatusFrame(int value) { 047 this.value = value; 048 } 049}