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

Description

Brownie configuration record (stored in EEPROM).

This record contains changeable configuration parameters.

The configuration is stored in the EEPROM at address BR_EEPROM_CFG_BASE (see below). On startup, an SRAM copy is made, accessible via 'brConfigRecord'. Hence, changes to the EEPROM only take effect after the next reboot. This is particularly relevant if the device address is changed.

Note: The size of this structure must be equal to BR_EEPROM_CFG_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 447 of file interface.h.

#include "interface.h"

Public Attributes

uint8_t adr
 Own TWI address.
 
uint8_t magic
 Identify as a Brownie (should always be BR_MAGIC)
 
uint8_t oscCal
 Timer calibration: AVR's OSCCAL register (0xff = load factory default on boot)
 
int8_t hubMaxAdr
 TWI hub subnet: Last address managed by this hub. More...
 
uint8_t hubSpeed
 TWI master speed-down (1 ~= 100KHz; n ~= 100/n KHz)
 
uint8_t shadesDelayUp [2]
 Shades delay in ticks when starting to move up.
 
uint8_t shadesDelayDown [2]
 Shades delay in ticks when starting to move down.
 
uint8_t shadesSpeedUp [2]
 Shades motion up per tick.
 
uint8_t shadesSpeedDown [2]
 Shades motion down per tick.
 
uint8_t reserved [2]
 (Padding to fill up 16 bytes.)
 

Member Data Documentation

◆ hubMaxAdr

int8_t SBrConfigRecord::hubMaxAdr

TWI hub subnet: Last address managed by this hub.

A TWI hub manages all addresses ranging from 'adr' to (including) 'hubMaxAdr'.

Definition at line 454 of file interface.h.


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