nRF Connect SDK API
2.8.0
Loading...
Searching...
No Matches
tone.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2020 Nordic Semiconductor ASA
3
*
4
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5
*/
6
11
#ifndef __TONE_H__
12
#define __TONE_H__
13
21
#include <stdint.h>
22
#include <stddef.h>
23
40
int
tone_gen
(int16_t *tone,
size_t
*tone_size, uint16_t tone_freq_hz, uint32_t smpl_freq_hz,
41
float
amplitude);
42
47
#endif
/* __TONE_H__ */
tone_gen
int tone_gen(int16_t *tone, size_t *tone_size, uint16_t tone_freq_hz, uint32_t smpl_freq_hz, float amplitude)
Generates one full pulse-code modulation (PCM) period of a tone with the given parameters.
include
tone.h
Generated on Thu Nov 14 2024 12:11:44 for nRF Connect SDK API by
1.12.0