0hmX/dual-usb-peltier-assembly

A complete USB‑C PD Peltier controller assembly featuring an RP2040, adjustable TPS55289 buck‑boost TEC driver, 12 V fan supply, temperature-sensor inputs, USB programming, protection, status LEDs, and supporting passives/connectors.

Version
0.4.7
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