EasyManua.ls Logo

FriendlyARM Mini210S - Libfriendlyarm-Hardware.so Apis; Serial Port API

FriendlyARM Mini210S
252 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Address: Room 1705,Block A1, Longyuan Plaza, Longkouxi Road, Guangzhou, China, 510640 Website: http://www.arm9.net
Sales: +86-20-85201025 Tech Support: +86-13719442657 Fax: +86-20-85261505
Email for Business and Cooperation: capbily@163.com Email for Tech Support: dev_friendlyarm@163.com
- 178 -
To use the HardwareControler APIs you need to add the following line to your code
which introduces the HardwareControler class:
import com.friendlyarm.AndroidSDK.HardwareControler;
Now you will be able to call HardwareControler APIS and we will show you some
examples in the following sections:
6.2.2 libfriendlyarm-hardware.so APIs
We will list some HardwareControler APIs here.
6.2.2.1 Serial Port API
Serial Port APIs:
APIs
Parameters and Return Value
Comment
int openSerialPort(
String devName,
long baud,
int dataBits,
int stopBits )
devName: device name, the following
devices are available:
/dev/s3c2410_serial1
/dev/s3c2410_serial2
/dev/s3c2410_serial3
/dev/ttyUSB0
/dev/ttyUSB1
/dev/ttyUSB2
/dev/ttyUSB3
baud: baud rate
dataBits: in general we use 8
stopBits: in general we use 1
Open a serial device and return its file
descriptor.

Table of Contents

Related product manuals