PixelKey
NeoPixel USB Key
Loading...
Searching...
No Matches
config_data_t Struct Reference

Configuration structure. More...

#include <config.h>

Data Fields

struct {
   uint16_t   crc
 CRC-CCITT of all the following fields in the structure.
 
   uint8_t   length
 Size of the configuration data struct at the time of save.
 
   uint8_t   version
 Configuration struct version.
 
header
 Config header. More...
 
union {
   struct {
      uint32_t   echo_enabled: 1
 COM echo is enabled.
 
      uint32_t   gamma_enabled: 1
 Gamma correction is enabled.
 
      uint32_t   __pad0__: 30
 
   }   flags_b
 Configuration flags bit-field.
 
   uint32_t   flags
 Configuration flags as a word.
 
}; 
 
float gamma_factor
 Gamma correction factor.
 
uint32_t framerate
 Frame rate.
 
uint32_t num_neopixels
 Number of attached neopixels.
 
uint8_t max_rgb_value
 Maximum brightness allowed for any RGB channel.
 
config_neopixel_phy_t neopixel_phy
 PHY configuration.
 

Detailed Description

Configuration structure.

Note
The config_data_t::version element should be incremented if the struct layout changes in such a way that it is incompatible with previous versions, e.g. fields are moved out of order. Simple additions to the end of the struct do not need data version to be updated.

Field Documentation

◆ 

struct { ... } config_data_t::header

Config header.

Warning
Modification or moving of this struct will break the config functions.
These fields should only be modified by the code in hal_flash.c.

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