Class: FLSettings

FLSettings

Provides properties for configuring FLNet


Members


a1InSize :number

Gets/sets the size of the Area 1 input in the common memory map.

Type:
  • number
Since:
  • 1.0 (WAT 1.0)

a1InStart :number

Gets/sets the start address of the Area 1 input in the common memory map.

Type:
  • number
Since:
  • 1.0 (WAT 1.0)

a1OutSize :number

Gets/sets the size of the Area 1 output in the common memory map.

Type:
  • number
Since:
  • 1.0 (WAT 1.0)

a1OutStart :number

Gets/sets the start address of the Area 1 output in the common memory map.

Type:
  • number
Since:
  • 1.0 (WAT 1.0)

a2InSize :number

Gets/sets the size of the Area 2 input in the common memory map.

Type:
  • number
Since:
  • 1.0 (WAT 1.0)

a2InStart :number

Gets/sets the start address of the Area 2 input in the common memory map.

Type:
  • number
Since:
  • 1.0 (WAT 1.0)

a2OutSize :number

Gets/sets the size of the Area 2 output in the common memory map.

Type:
  • number
Since:
  • 1.0 (WAT 1.0)

a2OutStart :number

Gets/sets the start address of the Area 2 output in the common memory map.

Type:
  • number
Since:
  • 1.0 (WAT 1.0)

ip :wat.IPAddress

Gets/sets the IP address used when enabled.

Type:
Since:
  • 1.0 (WAT 1.0)

mmap :string

Gets/sets the xml description of the memory map. When flnet.FLNET#load is called, this description is used to create an object tree that can be used to directly access the attributes from JavaScript.

This is typically set using AJAX to retrieve an xml memory map file.

Type:
  • string
Since:
  • 1.0 (WAT 1.0)
Example
var $flnet = $wat.load('flnet')[0];

function initFL(mmap)
{
   $flnet.settings.mmap = mmap;
   // set up the other flnet settings here

   if ($flnet.load() == false)
   {
      alert("Failed to load FLNet memory map");
      return;
   }
}

// called after the page loads, for example in the body onload
function getXML()
{
   xmlhttp = new XMLHttpRequest();
   xmlhttp.open("GET", "eip.xml", true);
   xmlhttp.onreadystatechange=function() {
      if (xmlhttp.readyState==4) {
         initFL(xmlhttp.responseText);
      }
   }
   xmlhttp.send("");
}

mmapFile :string

The name of a file in the file system of the uP device (e.g. /wat/mmap.xml) to read the memory map from if mmap is empty when flnet.FLNET#load is called.

It is often more convenient to use AJAX and mmap to load a memory map.

Type:
  • string
Since:
  • 1.0 (WAT 1.0)
See:

offlineAction :number

Gets/sets the memory map policy when offline.

Type:
  • number
Since:
  • 1.2 (WAT 1.3)
See:

OfflineAction :object

Available options for offlineAction.

Type:
  • object
Properties:
Name Type Description
Zero number

Clear all of the memory map to zero when offline (0)

Freeze number

Freeze the memory map in the current state when offline (1)

Set number

Set all bits in the memory map to one when offline (2)

Since:
  • 1.2 (WAT 1.3)
See: