PiImageStreamer
Loading...
Searching...
No Matches
NetworkCommandTypes.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define COMMAND_MSG_TYPE   (0x00000100)
 
#define STATUS_REPORT_MSG_TYPE   (0x00000200)
 
#define HEARTBEAT_MSG_TYPE   (0x5AA55AA5)
 
#define BROADCAST_MESSAGE_TYPE   (0x7FFFFFFF)
 

Detailed Description

Author
Walter Schilling (schil.nosp@m.ling.nosp@m.@msoe.nosp@m..edu)
Version
1.0

LICENSE

This code is developed as part of the MSOE SWE4211 Real Time Systems course, but can be freely used by others.

SWE4211 Real Time Systems is a required course for students studying the discipline of software engineering.

This Software is provided under the License on an "AS IS" basis and without warranties of any kind concerning the Software, including without limitation merchantability, fitness for a particular purpose, absence of defects or errors, accuracy, and non-infringement of intellectual property rights other than copyright. This disclaimer of warranty is an essential part of the License and a condition for the grant of any rights to this Software.

DESCRIPTION

This file defines the message types. The type is placed in the messageType field of a networkMessageStruct and the commandType field of a CommandQueueEntry, and it determines how the message is routed.

Macro Definition Documentation

◆ BROADCAST_MESSAGE_TYPE

#define BROADCAST_MESSAGE_TYPE   (0x7FFFFFFF)

A broadcast message is sent to all devices / components within the system.

◆ COMMAND_MSG_TYPE

#define COMMAND_MSG_TYPE   (0x00000100)

This indicates that we have a command being sent. A command type indicates that a device is being commanded to perform some operation.

◆ HEARTBEAT_MSG_TYPE

#define HEARTBEAT_MSG_TYPE   (0x5AA55AA5)

A heartbeat message indicates a request or response is being sent to see if a given device is operating properly.

◆ STATUS_REPORT_MSG_TYPE

#define STATUS_REPORT_MSG_TYPE   (0x00000200)

This indicates that we have a status report. A status report is sent from a device to another device.