uGOOSE  1.0
GOOSE for Embedded Devices. Sample project for Renesas R-IN32-EC
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
goose_task.h File Reference
#include "ugibso_types.h"
#include <stdint.h>
Include dependency graph for goose_task.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

ER GooseTaskInit (void)
 Task init function. More...
 
ER GooseTask (SINT32 exinf)
 The Goose Task. More...
 

Detailed Description

Header file for goose_task.c - the test task for the GOOSE library

Function Documentation

ER GooseTask ( SINT32  exinf)

The Goose Task.

This function is the 'Main' function of the Goose Task. The task will enter a 'while(1)' loop and not exit unless an error occurs. Two function are performed by this task:

  1. Send the defined GOOSE data set (Goose 1) at the specified intervals.
  2. Receive the defined GOOSE data set (Goose 3) and import the sent value into the IED. A single boolen value is sent and this value is used to modify the data used in GOOSE data set 2 (Goose 2). The data set consists of an array of 64 boolean values. The Sequence number of the received packet is used as an index into this array and the boolean value found at this location is set to the value in the received packet.

First Packet (SeQ 0)

Goose 2 0 1 2 3 4 5 6 7 8 9 10 11 12 .. 63
Array of BOOL T F F F F F F F F F F F F F F

Second Packet (SeQ 1)

Goose 2 0 1 2 3 4 5 6 7 8 9 10 11 12 .. 63
Array of BOOL T T F F F F F F F F F F F F F

Third Packet (SeQ 2)

Goose 2 0 1 2 3 4 5 6 7 8 9 10 11 12 .. 63
Array of BOOL T T T F F F F F F F F F F F F

Once the value has been updated, a GOOSE packet (Goose 3) will be sent out with the updated values.

Precondition
None.
Postcondition
This function should never return, unless an error has occured.
Parameters
exinfExtra Information field provided by the OS
Returns
ER Error Code

Here is the call graph for this function:

ER GooseTaskInit ( void  )

Task init function.

This function is called to start the task. Any initialisation that may be required can be performed here, before the actual task is started.

Precondition
None.
Postcondition
The task will be made ready to run
Returns
ER Error Code

Here is the call graph for this function: