EAR-specific startup configuration behind USHER's generic backend interface. More...
#include "camera_backend.h"

Go to the source code of this file.
Functions | |
| struct camera_backend | ear_camera_backend_get (void) |
| Return the EAR backend descriptor by value; its session hook table has static lifetime. | |
| bool | ear_camera_backend_set_device (const char *device) |
| Copy an ALSA PCM name before initialization or worker startup. | |
| void | ear_camera_backend_set_simulated_source (double lat_deg, double lon_deg, double level_db_at_1m) |
| Select deterministic synthetic audio before initialization, bypassing ALSA. | |
| void | ear_camera_backend_set_band (double low_cut_hz, double high_cut_hz) |
| Forward startup tone-band selection to the audio adapter. | |
Detailed Description
EAR-specific startup configuration behind USHER's generic backend interface.
Lifecycle hooks are serial-owner-only. The backend owns bounded finalization and sensor-to-point conversion; USHER owns transport/correlation.
Definition in file ear_camera_backend.h.
Function Documentation
◆ ear_camera_backend_get()
| struct camera_backend ear_camera_backend_get | ( | void | ) |
Return the EAR backend descriptor by value; its session hook table has static lifetime.
- Returns
- Descriptor advertising point-session capability, not optical still capture.
Definition at line 344 of file ear_camera_backend.c.
◆ ear_camera_backend_set_band()
| void ear_camera_backend_set_band | ( | double | low_cut_hz, |
| double | high_cut_hz ) |
Forward startup tone-band selection to the audio adapter.
- Parameters
-
low_cut_hz Lower band edge, hertz. high_cut_hz Upper band edge, hertz; valid ordering is the CLI caller's responsibility.
Definition at line 342 of file ear_camera_backend.c.
◆ ear_camera_backend_set_device()
| bool ear_camera_backend_set_device | ( | const char * | device | ) |
Copy an ALSA PCM name before initialization or worker startup.
- Parameters
-
device Nonempty bounded ALSA name, such as default or plughw:CARD=USB,DEV=0.
- Returns
- True when copied; false for invalid input or active lifecycle state.
Caller memory may be released on return. Simulation is selected separately.
Definition at line 332 of file ear_camera_backend.c.
◆ ear_camera_backend_set_simulated_source()
| void ear_camera_backend_set_simulated_source | ( | double | lat_deg, |
| double | lon_deg, | ||
| double | level_db_at_1m ) |
Select deterministic synthetic audio before initialization, bypassing ALSA.
- Parameters
-
lat_deg Fixed source latitude, degrees. lon_deg Fixed source longitude, degrees. level_db_at_1m Simulated level at one metre; a test model, not measured calibration.
Definition at line 337 of file ear_camera_backend.c.