abse/dual-usb-peltier-assembly
A USB‑C PD Peltier controller PCB combining RP2040 control, adjustable buck‑boost TEC power, temperature sensing, fan regulation, USB programming, protection, status LEDs, and external accessory hardware.
- Version
- 0.4.6
- License
- unset
- Stars
- 0
firmware/include/command.h
#ifndef GENERAL_PD_COMMAND_H
#define GENERAL_PD_COMMAND_H
#include "policy.h"
typedef enum { CMD_INVALID, CMD_SET, CMD_RUN, CMD_STOP, CMD_STATUS, CMD_BOOT, CMD_SAVE, CMD_CLEAR, CMD_HELP } pd_command_kind;
typedef struct { pd_command_kind kind; uint16_t voltage_mv, current_ma; } pd_command;
bool pd_parse_command(const char *line, pd_command *command);
#endif