LoUtils.h File Reference

Utility functions. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int lo_clamp (int value, int min, int max)
 Clamp the given value to lie within [min, max].
char lo_sign (int n)
char lo_lobyte (int)
 Return a random number within the specified range.
char lo_hibyte (int)
 Return the high byte of a 16-bit word.
int lo_make_word (char hi, char lo)
 Combine two bytes into a single word.

Detailed Description

Utility functions.

Definition in file LoUtils.h.


Function Documentation

int lo_clamp ( int  value,
int  min,
int  max 
)

Clamp the given value to lie within [min, max].

Definition at line 55 of file LoUtils.c.

Referenced by lo_forward(), and lo_left().

char lo_hibyte ( int   ) 

Return the high byte of a 16-bit word.

Definition at line 94 of file LoUtils.c.

Referenced by lo_bumps(), lo_cliffs(), and lo_update_odometry().

char lo_lobyte ( int   ) 

Return a random number within the specified range.

Return the low byte of a 16-bit word

Definition at line 89 of file LoUtils.c.

Referenced by lo_bumps(), lo_cliffs(), lo_enable_rear_bumps(), and lo_update_odometry().

int lo_make_word ( char  hi,
char  lo 
)

Combine two bytes into a single word.

Definition at line 99 of file LoUtils.c.

Referenced by lo_backup(), lo_spin(), and lo_update_odometry().

char lo_sign ( int  n  ) 

Return the sign of a number, i.e., -1 if the input number is negative; +1 otherwise.

Definition at line 64 of file LoUtils.c.

Generated on Sun May 8 08:42:49 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3