ARMEBS4  revision-26.06.2015
usbh_adk_core.h
Go to the documentation of this file.
1 /**
2  ******************************************************************************
3  * @file usbh_adk_core.h
4  * @author Yuuichi Akagawa
5  * @version V1.0.0
6  * @date 2012/01/22
7  * @brief This file contains all the prototypes for the usbh_adk_core.c
8  * \ingroup androsensor
9  * @{
10  ******************************************************************************
11  * @attention
12  *
13  * Licensed under the Apache License, Version 2.0 (the "License");
14  * you may not use this file except in compliance with the License.
15  * You may obtain a copy of the License at
16  *
17  * http://www.apache.org/licenses/LICENSE-2.0
18  *
19  * Unless required by applicable law or agreed to in writing, software
20  * distributed under the License is distributed on an "AS IS" BASIS,
21  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22  * See the License for the specific language governing permissions and
23  * limitations under the License.
24  * <h2><center>&copy; COPYRIGHT (C)2012 Yuuichi Akagawa</center></h2>
25  *
26  ******************************************************************************
27  */
28 #ifndef HEIVS_ANDROSENSOR_USBH_ADK_CORE_H
29 #define HEIVS_ANDROSENSOR_USBH_ADK_CORE_H
30 
31 #include "stm32/usb/usbh_ioreq.h"
32 #include "stm32/usb/usbh_hcs.h"
33 #include "stm32/usb/usbh_stdreq.h"
34 #include "stm32/usb/usbh_core.h"
35 #include "heivs/error.h"
36 #include <stddef.h>
37 
38 #ifdef __cplusplus
39  extern "C" {
40 #endif
41 
42 status_e USBH_ADK_Init(const char* manufacture, const char* model, const char* description, const char* version, const char* uri, const char* serial);
43 status_e USBH_ADK_ReInit(void);
44 status_e USBH_ADK_write(USB_OTG_CORE_HANDLE *pdev, const uint8_t *buff, size_t len);
45 status_e USBH_ADK_read(USB_OTG_CORE_HANDLE *pdev, uint8_t *buff, size_t len, size_t *rlen);
46 uint32_t USBH_ADK_Connected(void);
47 
48 #ifdef __cplusplus
49  }
50 #endif
51 
52 /**
53  * @}
54  */
55 #endif /* HEIVS_ANDROSENSOR_USBH_ADK_CORE_H */
Errors definitions.
status_e
Known errors.
Definition: error.h:21