KM3NeT CLB  2.0
KM3NeT CLB v2 Embedded Software
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
acou.h File Reference

Acoustic Driver. More...

#include <stdint.h>

Go to the source code of this file.

Data Structures

union  AcouCtrl
 Register description for control of acoustic. More...
 

Enumerations

enum  AcouRes { ACOU_RES_12BIT = 0, ACOU_RES_16BIT = 1, ACOU_RES_24BIT = 2 }
 enum for bit resolution More...
 
enum  AcouCh { ACOU_CH_BOTH = 0, ACOU_CH_1 = 1, ACOU_CH_2 = 2 }
 enum for channels More...
 

Functions

void acouInit ()
 Initializes the acoustics (AES)
 
void acouOn ()
 Turns the hydrophone on.
 
void acouOff ()
 Truns the hydrohpone off.
 
void acouSetSampling (uint8_t val)
 Set the sampling interval. More...
 
void acouSetResolution (AcouRes val)
 Set the bit resolution. More...
 
void acouSetChannel (AcouCh val)
 Set the channel configuration. More...
 

Detailed Description

Acoustic Driver.

It allows to enable/disable the acoustic device, configure the channels and the resolution. It also allows to set the sampling rate, only used for debug.

Definition in file acou.h.

Enumeration Type Documentation

enum AcouCh

enum for channels

Enumerator
ACOU_CH_BOTH 

Both channels.

ACOU_CH_1 

Channel 1.

ACOU_CH_2 

Channel 2.

Definition at line 57 of file acou.h.

enum AcouRes

enum for bit resolution

Enumerator
ACOU_RES_12BIT 

12 bits

ACOU_RES_16BIT 

16 bits

ACOU_RES_24BIT 

32 bits

Definition at line 48 of file acou.h.

Function Documentation

void acouSetChannel ( AcouCh  val)

Set the channel configuration.

Parameters
valone of ACOU_CH_*

Definition at line 57 of file acou.c.

void acouSetResolution ( AcouRes  val)

Set the bit resolution.

Parameters
valone of ACOU_RES_*

Definition at line 51 of file acou.c.

void acouSetSampling ( uint8_t  val)

Set the sampling interval.

Parameters
valInterval, 1=each frame, 2=every other frame, 3=every 3rd frame, etc...

Definition at line 45 of file acou.c.