aboutsummaryrefslogtreecommitdiff
path: root/Projects/Incomplete/AVRISP/Lib/V2ProtocolParams.h
diff options
context:
space:
mode:
authorDean Camera <[email protected]>2009-08-25 08:09:49 +0000
committerDean Camera <[email protected]>2009-08-25 08:09:49 +0000
commit6d1adf7339b71952d1ba8616af9422fbc7333eb1 (patch)
tree1af4c2655f56f847b4b56cb1551a77e0d3afb054 /Projects/Incomplete/AVRISP/Lib/V2ProtocolParams.h
parentf070902bdb96795c497bce283288affaa9a4fc5b (diff)
downloadqmk_firmware-6d1adf7339b71952d1ba8616af9422fbc7333eb1.tar.gz
qmk_firmware-6d1adf7339b71952d1ba8616af9422fbc7333eb1.zip
Updated Benito project -- added hardware interrupt and software buffering for serial data reception to prevent missed characters, condensed pulse generation counters into a struct for clarity.
Added check to CDC_Device_BytesReceived() to ensure 0 is returned when device is not enumerated to a host. Move AVRISP project's V2Protocol_DelayMS() function to be static inline, as it is now very minimal. Added extra project doxygen documentation.
Diffstat (limited to 'Projects/Incomplete/AVRISP/Lib/V2ProtocolParams.h')
-rw-r--r--Projects/Incomplete/AVRISP/Lib/V2ProtocolParams.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/Projects/Incomplete/AVRISP/Lib/V2ProtocolParams.h b/Projects/Incomplete/AVRISP/Lib/V2ProtocolParams.h
index 4797c9fa8d..d0a467b00a 100644
--- a/Projects/Incomplete/AVRISP/Lib/V2ProtocolParams.h
+++ b/Projects/Incomplete/AVRISP/Lib/V2ProtocolParams.h
@@ -46,15 +46,19 @@
#include "V2ProtocolConstants.h"
/* Macros: */
+ /* Parameter privellage mask to allow the host PC to read the parameter's value */
#define PARAM_PRIV_READ (1 << 0)
+
+ /* Parameter privellage mask to allow the host PC to change the parameter's value */
#define PARAM_PRIV_WRITE (1 << 1)
/* Type Defines: */
+ /** Type define for a parameter table entry indicating a PC readable or writable device parameter. */
typedef struct
{
- const uint8_t ParamID;
- uint8_t ParamValue;
- uint8_t ParamPrivellages;
+ const uint8_t ParamID; /**< Parameter ID number to uniquely identify the parameter within the device */
+ uint8_t ParamValue; /**< Current parameter's value within the device */
+ uint8_t ParamPrivellages; /**< Parameter privellages to allow the host to read or write the parameter's value */
} ParameterItem_t;
/* Function Prototypes: */