|
Files | |
file | lego-sound.h |
SMUX driver for the Lego Sound sensor. | |
Functions | |
int | SNDreadRaw (tMUXSensor muxsensor) |
int | SNDreadNorm (tMUXSensor muxsensor) |
void | SNDsetDBA (tMUXSensor muxsensor) |
void | SNDsetDB (tMUXSensor muxsensor) |
Sound Sensor
int SNDreadNorm | ( | tMUXSensor | muxsensor ) |
Get the processed value from the sensor.
muxsensor | the SMUX sensor port number |
Definition at line 58 of file lego-sound.h.
int SNDreadRaw | ( | tMUXSensor | muxsensor ) |
Get the raw value from the sensor
muxsensor | the SMUX sensor port number |
Definition at line 48 of file lego-sound.h.
void SNDsetDB | ( | tMUXSensor | muxsensor ) |
Set the mode of the sensor to DB, this is done by switching on DIG0.
muxsensor | the SMUX sensor port number |
Definition at line 79 of file lego-sound.h.
void SNDsetDBA | ( | tMUXSensor | muxsensor ) |
Set the mode of the sensor to DBA, this is done by switching off DIG0.
muxsensor | the SMUX sensor port number |
Definition at line 69 of file lego-sound.h.