Difference between revisions of "Example serport212"

From wiki.emacinc.com
Jump to: navigation, search
Line 27: Line 27:
  
 
==Usage and Behavior==
 
==Usage and Behavior==
 +
 +
<code>serport212</code> gets or sets the configuration of the serial combo port on a SOM212ES carrier board.
 +
 +
===Hardware Requirements===
 +
 +
The <code>serport212</code> C example project must be run on a SOM212ES carrier board.
 +
 +
====Using <code>serport212</code>====
 +
 +
./serport212 [-sg] [CONFIG]
 +
Where CONFIG is a valid serial port configuration specification: 232, 422 or 485
 +
 +
Options:
 +
(--set) -s [CONFIG] Set Serial Port Configuration
 +
(--get) -g Get Serial Port Configuration

Revision as of 14:07, 19 December 2013

TODO: {{#todo:Review(12.19.13-13:55->JG+)|Jgreene|oe 4,oe 5,jg,md,Review}}

This is a guide to the serport212 C example project included in the EMAC OE SDK.

This application is a SOM212ES serial combo port configuration tool. It sets or gets the configuration of the serial combo port on a SOM212ES carrier board.

Also included in the project directory is a BASH version of this tool: serport212.bash. It performs the same functions and takes the same command parameters as the C executable version.

The serport212 project builds one executable: serport212.

Opening, Building and Uploading the Project Files

1. Open the C/C++ editing perspective.

stub

2. Open the project files.

stub

3. Build the project.

stub

4. Upload the executables to the target system.

stub

Usage and Behavior

serport212 gets or sets the configuration of the serial combo port on a SOM212ES carrier board.

Hardware Requirements

The serport212 C example project must be run on a SOM212ES carrier board.

Using serport212

./serport212 [-sg] [CONFIG]

Where CONFIG is a valid serial port configuration specification: 232, 422 or 485

Options: (--set) -s [CONFIG] Set Serial Port Configuration (--get) -g Get Serial Port Configuration