TinyTrainable
 
Loading...
Searching...
No Matches
main_functions.h
Go to the documentation of this file.
1/* Copyright 2019 The TensorFlow Authors. All Rights Reserved.
2
3Licensed under the Apache License, Version 2.0 (the "License");
4you may not use this file except in compliance with the License.
5You may obtain a copy of the License at
6
7 http://www.apache.org/licenses/LICENSE-2.0
8
9Unless required by applicable law or agreed to in writing, software
10distributed under the License is distributed on an "AS IS" BASIS,
11WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12See the License for the specific language governing permissions and
13limitations under the License.
14==============================================================================*/
15
16#ifndef TENSORFLOW_LITE_MICRO_EXAMPLES_MICRO_SPEECH_MAIN_FUNCTIONS_H_
17#define TENSORFLOW_LITE_MICRO_EXAMPLES_MICRO_SPEECH_MAIN_FUNCTIONS_H_
18
19// Expose a C friendly interface for main functions.
20#ifdef __cplusplus
21extern "C" {
22#endif
23
24// Initializes all data needed for the example. The name is important, and needs
25// to be setup() for Arduino compatibility.
26void setup();
27
28// Runs one iteration of data gathering and inference. This should be called
29// repeatedly from the application code. The name needs to be loop() for Arduino
30// compatibility.
31void loop();
32
33#ifdef __cplusplus
34}
35#endif
36
37#endif // TENSORFLOW_LITE_MICRO_EXAMPLES_MICRO_SPEECH_MAIN_FUNCTIONS_H_
void setup()
void loop()