X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/7f9f97c792dee6875fbca9806422bdd7d6c5a657..03ee87b35abdb8b92e8b55ec040fa943f9a6786c:/Projects/AVRISP-MKII/Lib/V2ProtocolParams.h diff --git a/Projects/AVRISP-MKII/Lib/V2ProtocolParams.h b/Projects/AVRISP-MKII/Lib/V2ProtocolParams.h index 04e32fe2e..995468a4d 100644 --- a/Projects/AVRISP-MKII/Lib/V2ProtocolParams.h +++ b/Projects/AVRISP-MKII/Lib/V2ProtocolParams.h @@ -52,10 +52,13 @@ /* Macros: */ /** Parameter privilege mask to allow the host PC to read the parameter's value */ - #define PARAM_PRIV_READ (1 << 0) + #define PARAM_PRIV_READ (1 << 0) /** Parameter privilege mask to allow the host PC to change the parameter's value */ - #define PARAM_PRIV_WRITE (1 << 1) + #define PARAM_PRIV_WRITE (1 << 1) + + /** Total number of parameters in the parameter table */ + #define TABLE_PARAM_COUNT (sizeof(ParameterTable) / sizeof(ParameterTable[0])) /* Type Defines: */ /** Type define for a parameter table entry indicating a PC readable or writable device parameter. */