Shutting down the lontalk stack device – Echelon LonTal Stack User Manual

Page 143

Advertising
background image

LonTalk Stack Developer’s Guide

131

• Using named or unnamed files (the DMF framework uses unnamed files

by default, whereas FTP uses named files)

• Up to 64 KB of data for each file
• For the DMF framework: Up to a total of 64 KB for all files plus the file

directory itself

• For FTP: unlimited size

The utility initializes the file directory depending on the chosen access method.

The directory can be used with an FTP server implementation or the file access
host memory window implementation. The initialization that the utility provides

works for both little-endian and big-endian host processors.
The FtxlDev.h header file allows you to customize the file directory structure, if
needed.

Shutting Down the LonTalk Stack device

To perform an orderly shutdown of a LonTalk Stack device, your application can

call the LonExit() API function. The implementation of this function is
generated by the LonTalk Interface Developer utility, and is included in the

FtxlDev.c file. This function calls the LonLidDestroyStack() API function to
stop the LonTalk Host stack and free its resources. In addition, the LonExit()

function can perform any clean-up for the application, such as deleting operating

system events and other resources.

After your application calls the LonExit() function, it can call the LonInit()

function again. However, if you want to change the LonTalk host stack’s
interface, you must reboot the device.

Advertising