amos 9d633e9e67 Batch 15 (20261023-C-hwe-scale-15): 320 HWE-derived repair tasks
One user-space repair task per eligible HWE debug-diag / compile-deploy base
ID: 320 admitted (C 218, C++ 97, build scripts 5), 1 skipped by the content
filter. Each ships a public spec with a check-to-basis table, at least two
defects with single-fix fixtures, a symptom-masking fixture and an alternative
correct implementation. Claude re-checked all 320: structure, the HWE quality
items and trace6 Docker calibration receipts against current digests
(320/320 USABLE). Difficulty is unmeasured. Known follow-up: 212 tasks use 120
ad-hoc family names; the next batch maps them to the canonical list.
The batch's 1,256-line progress log stays in its factory report and the
36-local branch batch15-hwe.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 01:55:56 +08:00

33 lines
967 B
C

#ifndef OUTPUT_H
#define OUTPUT_H
#include <stdint.h>
#define OUTPUT_PINS 8
struct output_slot {
int desired;
int pending;
int ready;
};
struct output_control {
struct output_slot slots[OUTPUT_PINS];
unsigned staged;
unsigned committed;
unsigned canceled;
};
struct output_view {
int desired;
int pending;
int ready;
};
void output_init(struct output_control *control);
int output_stage(struct output_control *control, int pin, int value);
int output_stage_mask(struct output_control *control, int mask, int bits);
int output_apply(struct output_control *control, int mask);
int output_cancel(struct output_control *control, int mask);
int output_rebind(struct output_control *control, int pin, int value);
int output_query(const struct output_control *control, int pin,
struct output_view *view);
void port_direction(int pin);
void port_value(int pin, int value);
void port_rebind(int pin, int value);
#endif