|
|
@@ -129,6 +129,7 @@ class Backend( BackendBase ): |
|
|
|
|
|
|
|
|
|
|
|
## Capabilities ## |
|
|
|
self.fill_dict['CapabilitiesFuncDecl'] = "" |
|
|
|
self.fill_dict['CapabilitiesList'] = "const Capability CapabilitiesList[] = {\n" |
|
|
|
|
|
|
|
# Keys are pre-sorted |
|
|
@@ -136,6 +137,7 @@ class Backend( BackendBase ): |
|
|
|
funcName = capabilities.funcName( key ) |
|
|
|
argByteWidth = capabilities.totalArgBytes( key ) |
|
|
|
self.fill_dict['CapabilitiesList'] += "\t{{ {0}, {1} }},\n".format( funcName, argByteWidth ) |
|
|
|
self.fill_dict['CapabilitiesFuncDecl'] += "void {0}( uint8_t state, uint8_t stateType, uint8_t *args );\n".format( funcName ) |
|
|
|
|
|
|
|
self.fill_dict['CapabilitiesList'] += "};" |
|
|
|
|