Manual

Neuron C Reference Guide 85
get_fblock_count( ) Built-in Function
The get_fblock_count( ) built-in function is a compiler special function that
returns the number of functional block (fblock) declarations in the program. For
an array of functional blocks, each element counts as a separate fblock
declaration.
Syntax
unsigned int get_fblock_count (void);
Example
unsigned numFBs;
void f(void)
{
numFBs = get_fblock_count();
}
get_nv_count( ) Built-in Function
The get_nv_count( ) built-in function is a special compiler function that returns
the number of network variable declarations in the program. For each network
variable array, each element counts as a separate network variable.
Syntax
unsigned int get_nv_count (void);
Example
network input SNVT_time_stamp nviTimeStamp[4];
unsigned numNVs;
void f(void)
{
numNVs = get_nv_count(); // Returns ‘4’ in this case
}
get_tick_count( ) Function
The get_tick_count( ) function returns the current system time. The tick
interval, in microseconds, is defined by the literal TICK_INTERVAL. This
function is useful for measuring durations of less than 50 ms for a Series 3100
device at 40 MHz. For Series 3100 devices, the tick interval scales with the input
clock. For Series 5000 devices, the tick interval is fixed at (0.5 *
TICK_INTERVAL).
Syntax
unsigned int get_tick_count (void);