Modular Pinball Machine Controller
Data Fields

SW Struct Reference

Tracks the state of each switch. More...

#include <pinkit.h>

Data Fields

BYTE state
BYTE type
BYTE score
BYTE coil
BYTE cmd [2]

Detailed Description

Tracks the state of each switch.


Field Documentation

BYTE cmd[2]

Command to send

BYTE coil

If 7:4 != 0, 3:0 = Coil to trigger in response to switch closure

BYTE score

Score to log on switch event: score[7:4] * 10**score[3:0]

BYTE state

bit 7: 0=off, 1=on, bit 4: 1=cmd pending, bits 3:0 = brightness

BYTE type

0=level (reports ON/OFF), 1=edge (reports PULSE)


The documentation for this struct was generated from the following file: