From 3ec9462b99a8f244a87b84e67b17c16e97952d02 Mon Sep 17 00:00:00 2001 From: gstellenberg Date: Fri, 22 May 2009 22:21:55 -0500 Subject: [PATCH] Fixed switch rule linking and completed DMD configuration --- include/pinproc.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/include/pinproc.h b/include/pinproc.h index 923aece..1799557 100644 --- a/include/pinproc.h +++ b/include/pinproc.h @@ -257,11 +257,10 @@ PR_EXPORT PRResult PRSwitchesUpdateRule(PRHandle handle, uint8_t switchNum, PREv // DMD -typedef struct PRDMDGlobalConfig { +typedef struct PRDMDConfig { uint8_t numRows; uint16_t numColumns; uint8_t numSubFrames; - uint16_t cyclesPerRow; bool_t enable; uint8_t rclkLowCycles[8]; uint8_t latchHighCycles[8]; @@ -270,9 +269,9 @@ typedef struct PRDMDGlobalConfig { } PRDMDConfig; /** Sets the configuration registers for the DMD driver. */ -PR_EXPORT int32_t PRDMDUpdateGlobalConfig(PRHandle handle, PRDMDGlobalConfig *dmdGlobalConfig); +PR_EXPORT int32_t PRDMDUpdateConfig(PRHandle handle, PRDMDConfig *dmdConfig); /** Updates the DMD frame buffer with the given data. */ -PR_EXPORT PRResult PRDMDDraw(PRHandle handle, uint8_t * dots, uint16_t columns, uint8_t rows, uint8_t numSubFrames); +PR_EXPORT PRResult PRDMDDraw(PRHandle handle, uint8_t * dots); /** @cond */ PR_EXTERN_C_END