• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (C) 2022 Beken Corporation
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 //     http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 
15 #pragma once
16 
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20 
21 /**
22  * @brief     Init the spidma
23  *
24  * This API init spidma, open spidma
25 .*
26  * param data: configure for camera and jpeg
27  *
28  * @attention 1. work for imaging transfer by spidma transfer way
29  *
30  * @return
31  *    - kNoErr: success
32  *    - other: failed
33  */
34 bk_err_t spidma_intfer_init(void *data);
35 
36 /**
37  * @brief     Denit the spidma
38  *
39  * This API deinit spidma, reset spidma config, close spidma function
40 .*
41  * param data: configure for camera and jpeg
42  *
43  * @attention 1. work for imaging transfer by spidma transfer way
44  *
45  * @return
46  *    - kNoErr: success
47  *    - other: failed
48  */
49 bk_err_t spidma_intfer_deinit(void);
50 
51 #ifdef __cplusplus
52 }
53 #endif
54 
55 
56