Home2L - C/C++ API  v1.2-2-ga4fe (2023-04-15)
Smart Tools for a Private Home
Public Attributes | List of all members
SBrFeatureRecord Struct Reference

Description

Brownie feature record (stored in VROM).

This record describes the firmware version and available features.

Note: The size of this structure must be equal to BR_VROM_SIZE and a multiple of BR_MEM_BLOCKSIZE. This can be checked by compiling and running 'home2l-brownie2l' (see entry of main() there).

Definition at line 332 of file interface.h.

#include "interface.h"

Public Attributes

uint8_t versionMajor
 Version: major/minor/revision...
 
uint16_t features
 Feature presence (see BR_FEATURE_... masks)
 
uint16_t gpiPresence
 GPIO input presence mask (must be disjoint with output presence)
 
uint16_t gpiPullup
 GPIO input pullup selection; bits for which the internal pullup is activated.
 
uint16_t gpoPresence
 GPIO output presence mask (must be disjoint with input presence)
 
uint16_t gpoPreset
 GPIO output default state (will be set on init before Z-state is left)
 
uint8_t matDim
 Matrix dimensions (Bits 7:4: rows, bits 3:0 = cols)
 
uint8_t reserved [3]
 (reserved for future features)
 
char fwName [12]
 Written name of the firmware variant (base name of the .elf file without MCU part)
 
uint8_t mcuType
 MCU type (see BR_MCU_... constants)
 
uint8_t magic
 Brownie identification (always = BR_MAGIC)
 

The documentation for this struct was generated from the following file: