程序包 com.android.api
类 AndroidNative
- java.lang.Object
-
- com.android.api.AndroidNative
-
public class AndroidNative extends java.lang.Object
-
-
构造器概要
构造器 构造器 说明 AndroidNative(java.io.File device, int baudrate)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 java.io.InputStreamgetInputStream()java.io.OutputStreamgetOutputStream()static intgetScreenBacklightNative()static intgetScreenRotationNative()static intgpioDirectionNative(int gpioNumber, java.lang.String direction)static intgpioExportNative(int gpioNumber)static intgpioReadNative(int gpioNumber)static intgpioUnExportNative(int gpioNumber)static intgpioWriteNative(int gpioNumber, int value)static intscreenBacklightOffNative()static intscreenBacklightOnNative()static intsetScreenRotationNative(int rotation)static intsetSpiritAlarmWithDayNative(int mday, int hour, int min)static intsetSpiritAlarmWithWeekNative(int wday, int hour, int min)voiduartClose()
-
-
-
方法详细资料
-
setScreenRotationNative
public static int setScreenRotationNative(int rotation)
-
getScreenRotationNative
public static int getScreenRotationNative()
-
screenBacklightOnNative
public static int screenBacklightOnNative()
-
screenBacklightOffNative
public static int screenBacklightOffNative()
-
getScreenBacklightNative
public static int getScreenBacklightNative()
-
setSpiritAlarmWithDayNative
public static int setSpiritAlarmWithDayNative(int mday, int hour, int min)
-
setSpiritAlarmWithWeekNative
public static int setSpiritAlarmWithWeekNative(int wday, int hour, int min)
-
gpioExportNative
public static int gpioExportNative(int gpioNumber)
-
gpioUnExportNative
public static int gpioUnExportNative(int gpioNumber)
-
gpioReadNative
public static int gpioReadNative(int gpioNumber)
-
gpioWriteNative
public static int gpioWriteNative(int gpioNumber, int value)
-
gpioDirectionNative
public static int gpioDirectionNative(int gpioNumber, java.lang.String direction)
-
uartClose
public void uartClose()
-
getInputStream
public java.io.InputStream getInputStream()
-
getOutputStream
public java.io.OutputStream getOutputStream()
-
-