Software development & application, 1 the rhio library – SENA Rhio232 User Manual

Page 26

Advertising
background image

26

4. Software Development & Application

You can use the Rhio library to develop application software that is used to communicate with

the Rhio232.

The Rhio Library Files

RHIO_Proc.dll, RHIO_Process.h

You must link these two files in order to develop software using the Rhio library.

Test Program

A sample test program that has been developed using the Rhio library is provided to you in the

form of source and setup files (RHIO_TEST_Setup.exe). The test program shows developers

how to utilize the Rhio library more easily.

4.1 The Rhio Library

4.1.1 Overview of the Rhio Library

The Rhio library is an MFC library that allows you to implement a communication protocol

between Rhio and PC in a Windows environment. Since the Rhio library contains CSocket

Class, it should be linked to a Microsoft Winsock component during program development. The

RHIO_CommProcessCreate

function must also be used to create Process Class for use of

the library.

4.1.2 Reference

For definition of enumeration(s), structure(s) and function(s), refer to RHIO_Process.h.

1) Enumeration (See Appendix C.1)

Type

Description

EOnOffFlag

ON/OFF - a flag indicating run state

SendStateFlag

A flag indicating transmission state of a command sent to Rhio

ESetOutputFlag

A flag related to enable/disable state when setting output port

macro/delay/pulse

EADCMode

A flag specifying whether ADC is in Level mode or in Switch

mode

Advertising