Interface Config.AbstractConfig

All Known Subinterfaces:
Config.GenericConfig, Config.LegacyConfig
All Known Implementing Classes:
Config.AccelConfig, Config.AccelConfigExt, Config.ADC2Config, Config.ADCConfig, Config.CompassConfig, Config.CorrelationConfig, Config.DigitalGyroConfig, Config.GenericSensorConfig, Config.GlobalSamplingConfig, Config.HeartBeatConfig, Config.IMAConfig, Config.LoggingConfig, Config.RadioConfig, Config.RTCConfig, Config.StatusConfig, Config.TemperatureConfig, Config.VmonBoardConfig
Enclosing class:
Config

public static interface Config.AbstractConfig
abstract class for each configuration
  • Method Summary

    Modifier and Type Method Description
    int getBytes​(byte[] out)
    encode current configuration in a byte array
    Config.Mask getMask()
    get mask
    int parse​(byte[] in)
    pare input byte array to relevant configuration and return length of encoded config
    java.lang.String toString()
    create a string representation of the configuration
  • Method Details

    • parse

      int parse​(byte[] in) throws InertiaException
      pare input byte array to relevant configuration and return length of encoded config
      Parameters:
      in - input byte array
      Returns:
      length of encoded config
      Throws:
      InertiaException - upon error such as when length is insufficient
    • getBytes

      int getBytes​(byte[] out)
      encode current configuration in a byte array
      Parameters:
      out - byte array for encoded configuration
      Returns:
      length of encoded configuration
    • toString

      java.lang.String toString()
      create a string representation of the configuration
      Overrides:
      toString in class java.lang.Object
      Returns:
      string representation of configuration
    • getMask

      Config.Mask getMask()
      get mask
      Returns:
      mask for this config