Contiki-NG
Files

Driver for the RE-Mote Zonik sonometer board. More...

Files

file  zonik.c
 Driver for the RE-Mote Zonik sound sensor (ZONIK)
 
file  zonik.h
 Header file for the Zolertia Zonik sound sensor.
 

ZONIK address and definitions

#define ZONIK_ADDR   0x68
 
#define ZONIK_SENSOR   "Zonik Sound Sensor"
 
#define ZONIK_INITIAL_WAIT_DELAY   11000L
 
#define ZONIK_FINAL_WAIT_DELAY   22000L
 
#define ZONIK_INT_PORT   I2C_INT_PORT
 
#define ZONIK_INT_PIN   I2C_INT_PIN
 
#define ZONIK_FRAME_SIZE   4
 
#define ZONIK_WAIT_ACQ   (CLOCK_SECOND / 5)
 
#define ZONIK_SECOND_INTERVAL   106
 

ZONIK error values and definitions

#define ZONIK_ACTIVE   SENSORS_ACTIVE
 
#define ZONIK_HW_INIT   SENSORS_HW_INIT
 
#define ZONIK_ENABLED   1
 
#define ZONIK_VALUE_DEACTIVATE   0
 
#define ZONIK_DISABLED   0xD1ED
 
#define ZONIK_ERROR   (-1)
 
#define ZONIK_DBA_LEQ_VALUE   0x00
 
#define ZONIK_COUNT_VALUE   0x01
 

ZONIK command definitions

#define ZONIK_CMD_READ   0x01
 

ZONIK sensor type

const struct sensors_sensor zonik
 

Detailed Description

Driver for the RE-Mote Zonik sonometer board.