Syntax, Example, Floating-point support functions – Echelon Neuron C User Manual

Page 101

Advertising
background image

Neuron C Reference Guide

81

associated with the functional block specified, passes the

cmd

parameter on to

that director function, and returns when the called director function completes.

Syntax

void fblock_director (unsigned int

index

, int

cmd

);

index

A decimal number between 0 and 254 representing a

functional block global index.

cmd

A decimal number between –128 and 127, interpreted as

an application-specific command.

Example

void f(void)
{
fblock_director(myFB::global_index,

3);

}

Floating-Point Support

Functions

void fl_abs (const float_type *

arg1

, float_type *

arg2

);

void fl_add (const float_type *

arg1

, const float_type *

arg2

, float_type *

arg3

);

void fl_ceil (const float_type *

arg1

, float_type *

arg2

);

int fl_cmp (const float_type *

arg1

, const float_type *

arg2

);

void fl_div (const float_type *

arg1

, const float_type *

arg2

, float_type *

arg3

);

void fl_div2 (const float_type *

arg1

, float_type *

arg2

);

void fl_eq (const float_type *

arg1

, const float_type *

arg2

);

void fl_floor (const float_type *

arg1

, float_type *

arg2

);

void fl_from_ascii (const char *

arg1

, float_type *

arg2

);

void fl_from_s32 (const void *

arg1

, float_type *

arg2

);

void fl_from_slong (signed long

arg1

, float_type *

arg2

);

void fl_from_ulong (unsigned long

arg1

, float_type *

arg2

);

void fl_ge (const float_type *

arg1

, const float_type *

arg2

);

void fl_gt (const float_type *

arg1

, const float_type *

arg2

);

void fl_le (const float_type *

arg1

, const float_type *

arg2

);

void fl_lt (const float_type *

arg1

, const float_type *

arg2

);

void fl_max (const float_type *

arg1

, const float_type *

arg2

, float_type *

arg3

);

void fl_min (const float_type *

arg1

, const float_type *

arg2

, float_type *

arg3

);

void fl_mul (const float_type *

arg1

, const float_type *

arg2

, float_type *

arg3

);

void fl_mul2 (const float_type *

arg1

, float_type *

arg2

);

void fl_ne (const float_type *

arg1

, const float_type *

arg2

);

Advertising