// outcont.h // Copyright Joe D. Reeder 2001 -- All Rights Reserved struct OC { int type; // type of bridge being controlled int direction; // 0 = off, 1 = forward, 2 = reverse // Forward Elements int ForwardPortAddress; // address of the port with Forward output line char ForwardOnMask; // mask that will turn Forward line on when // ORed with the data value and stored back char ForwardOffMask; // mask that will turn Forward line off when // ANDed with the data value and stored back int *ForwardPortData; // pointer to the data value for the Forward port long ForwardSetOn; // on-time setting for Forward line long ForwardSetOff; // off-time setting for Forward line long ForwardOnCount; // counts left for on time long ForwardOffCount; // counts left for off time // Reverse Elements int ReversePortAddress; // address of the port with Reverse output line char ReverseOnMask; // mask that will turn Reverse line on when // ORed with the data value and stored back char ReverseOffMask; // mask that will turn Reverse line off when // ANDed with the data value and stored back int *ReversePortData; // pointer to the data value for the Reverse port long ReverseSetOn; // on-time setting for Reverse line long ReverseSetOff; // off-time setting for Reverse line long ReverseOnCount; // counts left for on time long ReverseOffCount; // counts left for off time // Brake Elements int BrakePortAddress; // address of the port with Brake output line char BrakeOnMask; // mask that will turn Brake line on when // ORed with the data value and stored back char BrakeOffMask; // mask that will turn Brake line off when // ANDed with the data value and stored back int *BrakePortData; // pointer to the data value for the Brake port // Direction Elements int DirectionPortAddress; // address of the port with Direction output line char DirectionOnMask; // mask that will turn Direction line on when // ORed with the data value and stored back char DirectionOffMask; // mask that will turn Direction line off when // ANDed with the data value and stored back int *DirectionPortData; // pointer to the data value for the Direction port }; // end outcont.h