Tone generator
The tone generator library creates an array of pulse-code modulation (PCM) data of a one-period sine tone, with a given tone frequency and sampling frequency. For more information, see API documentation.
Configuration
To enable the library, set the CONFIG_TONE
Kconfig option to y
in the project configuration file prj.conf
.
API documentation
Header file:
include/tone.h
Source file:
lib/tone/tone.c