in16-bim1122
============



setup                    app_main.cpp
  initApplication        app_4sense.cpp


loop                     app_main.cpp
  objectUpdated          app_4sense.cpp
  checkPeriodic          app_4sense.cpp



Classes:

Input: One class for all input pins
Channel: generic object, one per pin

Channel -> _Switch_ -> Switch
                    -> Switch2Level

Input



main
  delay_timer
    check_and_send
      send_obj_value
  grenzwert
  send_messdiff
    check_and_send
      send_obj_value

read_value_req
  send_obj_value

read_obj_value


---------------------------------------------------------------------------
fblib: callback to read_obj_value in app liefert Daten fr objno
sblib: objectSetValue schreibt Wert nach lib

/**
 * Set the value of a communication object without triggering the
 * sending of a write-group-value telegram.
 *
 * @param objno - the ID of the communication object.
 * @param value - the new value of the communication object.
 */
void objectSetValue(int objno, unsigned int value);

/**
 * Set the value of a communication object. Calling this function triggers the
 * sending of a write-group-value telegram.
 *
 * @param objno - the ID of the communication object.
 * @param value - the new value of the communication object.
 */
void objectWrite(int objno, unsigned int value);


-------------------------------------------------------------------------
void begin(int manufacturer, int deviceType, int version);
in8 bcu1: bcu.begin(4, 0x7054, 2); // We are a "Jung 2118" device, version 0.2
out8 bcu1: bcu.begin(4, 0x2060, 1); // We are a "Jung 2138.10" device, version 0.1

static __code unsigned char __at (EEPROM_ADDR + 0x03) manufacturer[2]={0x00,0x4C};  // Herstellercode 0x004C = Robert Bosch *
static __code unsigned char __at (EEPROM_ADDR + 0x05) device_type[2]={0x04,0x38};   // 0x0438 = Selfbus 1080 4sense #
static __code unsigned char __at (EEPROM_ADDR + 0x07) vd_version={0x06};            // VD Version V0.6 #


========================


sensor: physical sensor or bus
  temp: 1..4 sensors
  hum: 2 sensors: hum+temp
  voc: 1 sensor
channel: logical sensor with 1-2 measurements
  temp: temp only
  hum: hum and temp
  voc: ppm and co2?


=============================

Todo:
- type messwerte: float/signed int