48 #include "lib/sensors.h" 56 #define ZONIK_ADDR 0x68 57 #define ZONIK_SENSOR "Zonik Sound Sensor" 59 #define ZONIK_INITIAL_WAIT_DELAY 11000L 60 #define ZONIK_FINAL_WAIT_DELAY 22000L 62 #ifndef ZONIK_INT_CONF_PORT 63 #define ZONIK_INT_PORT I2C_INT_PORT 65 #define ZONIK_INT_PORT ZONIK_INT_CONF_PORT 68 #ifndef ZONIK_INT_CONF_PIN 69 #define ZONIK_INT_PIN I2C_INT_PIN 71 #define ZONIK_INT_PIN ZONIK_INT_CONF_PIN 74 #define ZONIK_FRAME_SIZE 4 76 #define ZONIK_WAIT_ACQ (CLOCK_SECOND / 5) 79 #define ZONIK_SECOND_INTERVAL 106 86 #define ZONIK_ACTIVE SENSORS_ACTIVE 87 #define ZONIK_HW_INIT SENSORS_HW_INIT 88 #define ZONIK_ENABLED 1 89 #define ZONIK_VALUE_DEACTIVATE 0 90 #define ZONIK_DISABLED 0xD1ED 91 #define ZONIK_ERROR (-1) 92 #define ZONIK_DBA_LEQ_VALUE 0x00 93 #define ZONIK_COUNT_VALUE 0x01 99 #define ZONIK_CMD_READ 0x01 105 extern const struct sensors_sensor zonik;
Implementation of a generic module controlling Zoul sensors.
Header file for the real-time timer module.