Sample program that can send the recognition data from HVC-P2 to Fujitsu IoT Platform using REST (HTTP)
Dependencies: AsciiFont GR-PEACH_video GraphicsFramework LCD_shield_config R_BSP USBHost_custom easy-connect-gr-peach mbed-http picojson
HVCExtraUartFunc.h
00001 /*---------------------------------------------------------------------------*/ 00002 /* Copyright(C) 2017 OMRON Corporation */ 00003 /* */ 00004 /* Licensed under the Apache License, Version 2.0 (the "License"); */ 00005 /* you may not use this file except in compliance with the License. */ 00006 /* You may obtain a copy of the License at */ 00007 /* */ 00008 /* http://www.apache.org/licenses/LICENSE-2.0 */ 00009 /* */ 00010 /* Unless required by applicable law or agreed to in writing, software */ 00011 /* distributed under the License is distributed on an "AS IS" BASIS, */ 00012 /* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ 00013 /* See the License for the specific language governing permissions and */ 00014 /* limitations under the License. */ 00015 /*---------------------------------------------------------------------------*/ 00016 00017 /* 00018 External UART-function definition 00019 */ 00020 00021 #ifndef HVCExtraUartFunc_H__ 00022 #define HVCExtraUartFunc_H__ 00023 00024 #ifdef __cplusplus 00025 extern "C" { 00026 #endif 00027 00028 /*----------------------------------------------------------------------------*/ 00029 /* UART send signal */ 00030 /* param : int inDataSize send signal data */ 00031 /* : UINT8 *inData data length */ 00032 /* return : int send signal complete data number */ 00033 /*----------------------------------------------------------------------------*/ 00034 extern int UART_SendData(int inDataSize, UINT8 *inData); 00035 00036 /*----------------------------------------------------------------------------*/ 00037 /* UART receive signal */ 00038 /* param : int inTimeOutTime timeout time (ms) */ 00039 /* : int *inDataSize receive signal data size */ 00040 /* : UINT8 *outResult receive signal data */ 00041 /* return : int receive signal complete data number */ 00042 /*----------------------------------------------------------------------------*/ 00043 extern int UART_ReceiveData(int inTimeOutTime, int inDataSize, UINT8 *outResult); 00044 00045 #ifdef __cplusplus 00046 } 00047 #endif 00048 00049 #endif /* HVCExtraUartFunc_H__ */ 00050
Generated on Thu Jul 14 2022 06:34:38 by 1.7.2