Home
last modified time | relevance | path

Searched refs:uartFd (Results 1 – 5 of 5) sorted by relevance

/device/soc/hisilicon/hi3516dv300/sdk_linux/sample/taurus/ai_sample/scenario/hand_classify/
Dhand_classify.c73 int uartFd = 0; variable
92 uartFd = UartOpenInit(); in Yolo2HandDetectResnetClassifyLoad()
93 if (uartFd < 0) { in Yolo2HandDetectResnetClassifyLoad()
155 UartSendRead(uartFd, FistGesture); // 拳头手势 in HandDetectFlag()
160 UartSendRead(uartFd, ForefingerGesture); // 食指手势 in HandDetectFlag()
165 UartSendRead(uartFd, OkGesture); // OK手势 in HandDetectFlag()
170 UartSendRead(uartFd, PalmGesture); // 手掌手势 in HandDetectFlag()
175 UartSendRead(uartFd, YesGesture); // yes手势 in HandDetectFlag()
180 UartSendRead(uartFd, ForefingerAndThumbGesture); // 食指 + 大拇指 in HandDetectFlag()
185 UartSendRead(uartFd, LittleFingerAndThumbGesture); // 大拇指 + 小拇指 in HandDetectFlag()
[all …]
/device/soc/hisilicon/hi3516dv300/sdk_linux/sample/taurus/uart_sample/
Duart.c42 int uartFd = 0; variable
229 uartFd = UartOpenInit(); in main()
230 if (uartFd < 0) { in main()
236 ret = UartSend(uartFd, (unsigned char*)gestureName, strlen(gestureName)); in main()
237 readLen = UartRead(uartFd, uartReadBuff, RecvLen, 1000); /* 1000 :time out */ in main()
242 close(uartFd); in main()
246 uartFd = 0; in main()
Duart.h20 int UartRead(int uartFd, char *buf, int len, int timeoutMs);
/device/soc/hisilicon/hi3516dv300/sdk_linux/sample/taurus/ai_sample/interconnection_server/
Dhisignalling.c401 int UartRead(int uartFd, char *buf, int len, int timeoutMs) in UartRead() argument
416 FD_SET(uartFd, &rset); in UartRead()
417 ret = select(uartFd + 1, &rset, NULL, NULL, &time); in UartRead()
429 ret = read(uartFd, (char *)readBuf + rsum, readLen - rsum); in UartRead()
614 static void UartProcess(int uartFd, int Gpio1Fd, int Gpio2Fd, struct pollfd fdS1, struct pollfd fdS… in UartProcess() argument
623 Uart1Config(uartFd); in UartProcess()
647 … HisignallingMsgSend(uartFd, writeBuffer2, sizeof(writeBuffer2) / sizeof(writeBuffer2[0])); in UartProcess()
668 … HisignallingMsgSend(uartFd, writeBuffer3, sizeof(writeBuffer3) / sizeof(writeBuffer3[0])); in UartProcess()
670 HisignallingMsgSend(uartFd, writeBuffer, sizeof(writeBuffer) / sizeof(writeBuffer[0])); in UartProcess()
677 HisignallingMsgReceive(uartFd, readBuff, HISIGNALLING_MSG_MOTOR_ENGINE_LEN); in UartProcess()
DREADME.md14 uartFd = UartOpenInit();
15 if (uartFd < 0) {