Download Print this page

VIA Technologies VAB-600 SmartETK SDK Programming Manual

Hide thumbs Also See for VAB-600 SmartETK SDK:

Advertisement

Quick Links

PROGRAMMING GUIDE
VAB-600 SmartETK_SDK
1.01-08032015-110100

Advertisement

loading
Need help?

Need help?

Do you have a question about the VAB-600 SmartETK SDK and is the answer not in the manual?

Questions and answers

Summary of Contents for VIA Technologies VAB-600 SmartETK SDK

  • Page 1 PROGRAMMING GUIDE VAB-600 SmartETK_SDK 1.01-08032015-110100...
  • Page 2 VIA Technologies, Inc. reserves the right the make changes to the products described in this manual at any time without prior...
  • Page 3 VAB- - - - 600 600 Smart Smart ETK ETK Programming Programming Guide Guide Smart Smart Programming Programming Guide Guide Revision History Version Version Date Date Remarks Remarks Version Version Date Date Remarks Remarks 1.00 2015/07/22 Initial external release. 1.01 2015/07/31 Removed Smart ETK version...
  • Page 4: Table Of Contents

    VAB- - - - 600 600 Smart Smart ETK ETK Programming Programming Guide Guide Smart Smart Programming Programming Guide Guide Table of Contents 1. 1. 1. 1. Introduction Introduction ........ Introduction Introduction ..........................................................................
  • Page 5 VAB- - - - 600 600 Smart Smart ETK ETK Programming Programming Guide Guide Smart Smart Programming Programming Guide Guide 1. 1. 1. 1. Introduction Introduction Introduction Introduction Smart ETK is programmed with the socket IO as a communication between JAVA and C language to control the hardware modules.
  • Page 6: Develop The Environment Develop The Environment

    VAB- - - - 600 600 Smart Smart ETK ETK Programming Programming Guide Guide Smart Smart Programming Programming Guide Guide 2. 2. 2. 2. Develop Develop Develop the Develop the e e e e nvironment nvironment nvironment nvironment Eclipse is an officially recommended and integrated development environment (IDE) for the Android application.
  • Page 7: Function Return Values

    VAB- - - - 600 600 Smart Smart ETK ETK Programming Programming Guide Guide Smart Smart Programming Programming Guide Guide 2.2. Function Return Values Other than the Boolean TRUE and FALSE return values, there are eight other types of return values found throughout the Smart ETK SDK API. SmartETK.S_OK SmartETK.S_OK SmartETK.S_OK...
  • Page 8 VAB- - - - 600 600 Smart Smart ETK ETK Programming Programming Guide Guide Smart Smart Programming Programming Guide Guide SmartETK.E_INVALID_ARG SmartETK.E_INVALID_ARG SmartETK.E_INVALID_ARG SmartETK.E_INVALID_ARG Description: The E_INVALID_ARG return value has the constant value - 1003. When a function returns the E_INVALID_ARG value, it indicates that the arguments are invalid SmartETK.E_OUT_OF_MEMORY SmartETK.E_OUT_OF_MEMORY...
  • Page 9: Api List

    VAB- - - - 600 600 Smart Smart ETK ETK Programming Programming Guide Guide Smart Smart Programming Programming Guide Guide 2.3. API List SmartETK.Init SmartETK.Init SmartETK.Init SmartETK.Init Syntax: static int Init(void); Description: This function initializes the Smart ETK and loads the JNI. Parameters: None Return:...
  • Page 10 VAB- - - - 600 600 Smart Smart ETK ETK Programming Programming Guide Guide Smart Smart Programming Programming Guide Guide SmartETK. SupportRtcWake SmartETK. SupportRtcWake SmartETK. SupportRtcWake SmartETK. SupportRtcWake Syntax: static int SupportRtcWake( ); Description: Check if current platform supports RTC wake-up. Parameters: None.
  • Page 11 VAB- - - - 600 600 Smart Smart ETK ETK Programming Programming Guide Guide Smart Smart Programming Programming Guide Guide SmartETK. Gpio_Set SmartETK. Gpio_Set SmartETK. Gpio_Set SmartETK. Gpio_Set Syntax: public static int Gpio_Set(int pinId, int inOut, int upDown); Description: Setup I/O configuration for specific GPIO pin. Parameters: pinId: ID of GPIO pin.
  • Page 12 VAB- - - - 600 600 Smart Smart ETK ETK Programming Programming Guide Guide Smart Smart Programming Programming Guide Guide SmartETK. Gpio_Read SmartETK. Gpio_Read SmartETK. Gpio_Read SmartETK. Gpio_Read Syntax: static int Gpio_Read(int pinId, int pinVal[]); Description: Get GPIO input signal. Parameters: pinId –...
  • Page 13 VAB- - - - 600 600 Smart Smart ETK ETK Programming Programming Guide Guide Smart Smart Programming Programming Guide Guide SmartETK.Wdt_Start SmartETK.Wdt_Start SmartETK.Wdt_Start SmartETK.Wdt_Start Syntax: static int Wdt_Start(); Description: Start watch dog timer. If application does not call Wdt_Refresh in time set in Wdt_SetTimer , system will be reset.
  • Page 14 VAB- - - - 600 600 Smart Smart ETK ETK Programming Programming Guide Guide Smart Smart Programming Programming Guide Guide SmartETK. Rtc_WakeupDisable SmartETK. Rtc_WakeupDisable SmartETK. Rtc_WakeupDisable SmartETK. Rtc_WakeupDisable Syntax: Rtc_WakeupDisable( ); Description: Disable RTC wake-up. Parameters: None. Return: S_OK – if the function succeeded. E_FAIL –...
  • Page 15 VAB- - - - 600 600 Smart Smart ETK ETK Programming Programming Guide Guide Smart Smart Programming Programming Guide Guide SmartETK. Uart_GetConfig SmartETK. Uart_GetConfig SmartETK. Uart_GetConfig SmartETK. Uart_GetConfig Syntax: native public static UartConfig Uart_GetConfig(FileDescriptor fd); Description: Return terminal configuration of specific FileDescriptor. Parameters: fd –...
  • Page 16: Uart Parameters

    VAB- - - - 600 600 Smart Smart ETK ETK Programming Programming Guide Guide Smart Smart Programming Programming Guide Guide 2.4. UART Parameters SmartETK defines UART (Universal Asynchronous Receiver/Transmitter) related values into another class com.via.UartConfig for configuration. Instead of one-time setup for other devices, UART is transferring data continually.