1
0
mirror of https://github.com/preble/libpinproc synced 2026-02-22 18:15:25 +01:00

Added kPRMachineTypeWPCAlphanumeric to differentiate between WPC machines needing an Aux port for alphanumeric control versus those using a DMD. Also added default driver code to configure the FPGA's Manager Config register.

This commit is contained in:
gstellenberg
2010-04-10 23:17:55 -05:00
parent 2be7223089
commit 25c4fe2d0b
7 changed files with 79 additions and 9 deletions

View File

@@ -95,10 +95,11 @@ PR_EXPORT const char *PRGetLastErrorText();
typedef enum PRMachineType {
kPRMachineInvalid = 0,
kPRMachineCustom = 1,
kPRMachineWPC = 2,
kPRMachineWPC95 = 3,
kPRMachineSternWhitestar = 4,
kPRMachineSternSAM = 5,
kPRMachineWPCAlphanumeric = 2,
kPRMachineWPC = 3,
kPRMachineWPC95 = 4,
kPRMachineSternWhitestar = 5,
kPRMachineSternSAM = 6,
} PRMachineType;
// PRHandle Creation and Deletion
@@ -128,6 +129,19 @@ PR_EXPORT PRResult PRWriteData(PRHandle handle, uint32_t moduleSelect, uint32_t
/** Read data from the P-ROC. */
PR_EXPORT PRResult PRReadData(PRHandle handle, uint32_t moduleSelect, uint32_t startingAddr, int32_t numReadWords, uint32_t * readBuffer);
// Manager
/** @defgroup Manager
* @{
*/
typedef struct PRManagerConfig {
bool_t reuse_dmd_data_for_aux;
bool_t invert_dipswitch_1;
} PRManagerConfig;
/** Update Manager configuration */
PR_EXPORT PRResult PRManagerUpdateConfig(PRHandle handle, PRManagerConfig *managerConfig);
// Drivers
/** @defgroup drivers Driver Manipulation
* @{