Echelon Neuron C User Manual
Neuron, C programmer’s guide
Table of contents
Document Outline
- Welcome
- Audience
- Related Documentation
- Typographic Conventions for Syntax
- 1. Overview
- What Is Neuron C?
- Unique Aspects of Neuron C
- Neuron-Hosted and Host-Based Compilation
- Differences between Neuron C and ANSI C
- 2. Focusing on a Single Device
- 3. How Devices Communicate Using Network Variables
- Major Topics
- Overview
- Declaring Network Variables
- Connecting Network Variables
- Network Variable Events
- Synchronous Network Variables
- Processing Completion Events for Network Variables
- Polling Network Variables
- Explicit Propagation of Network Variables
- Initial Value Updates for Input Network Variables
- Monitoring Network Variables
- Authentication
- Changeable-Type Network Variables
- 4. Using Configuration Properties to Configure Device Behavior
- 5. Using Functional Blocks to Implement a Device Interface
- 6. How Devices Communicate Using Application Messages
- Introduction to Application Messages
- Layers of Neuron Software
- Implicit Messages: Network Variables
- Application Messages
- Constructing a Message
- Sending a Message
- Receiving a Message
- Application Message Examples
- Explicit Addressing
- Sending a Message with the Acknowledged Service
- Preemption Mode and Messages
- Asynchronous and Direct Event Processing
- Using the Request/Response Mechanism
- Application Buffers
- 7. Additional Features
- The Scheduler
- Scheduler Reset Mechanism
- Bypass Mode
- Watchdog Timer
- Additional Predefined Events
- Interrupts
- Sleep Mode
- Error Handling
- Access to Device Status and Statistics
- 8. Memory Management
- Memory Use
- Using Neuron Chip Memory
- Reallocating On-Chip EEPROM
- Allocating Buffers
- Usage Tip for Memory-Mapped I/O
- What to Try When a Program Does Not Fit on a Neuron Chip
- Reduce the Size of the Configuration Property Template File
- Reduce the Number of Address Table Entries
- Remove Self-Identification Data if Not Needed
- Remove Network Variable Names if Not Needed
- Declare Constant Data Properly
- Use Efficient Constant Values
- Take Advantage of Neuron Firmware Default Initialization Actions
- Use Neuron C Utility Functions Effectively
- Be Aware of Library Usage
- Use More Efficient Data Types
- Observe Declaration Order
- Use the Optional fastaccess Feature
- Eliminate Common Sub-Expressions
- Use Function Calls Liberally
- Use the Alternate Initialization Sequence
- Use C Operators Effectively
- Use Neuron C Extensions Effectively
- Using the Link Map
- A. Neuron C Tools Stand-Alone Use
- B. Neuron C Function Libraries
- C. Neuron C Custom System Images
- D. Neuron C Language Implementation Characteristics
- Neuron C Language Implementation Characteristics
- Index