heat control  r71
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
types.c File Reference
#include "types.h"
Include dependency graph for types.c:

Go to the source code of this file.

Functions

UINT SetLimitValue (UINT val, DATTYPE dt, CHAR dir, INT min, INT max)
 limiting values to constraints More...
 
UCHAR FlipByte (UCHAR x)
 reverse bits in a byte (make it RS232 conform for transmission) More...
 
UCHARGetCtrlMode (CTRL_MODE ctm, UCHAR *buf)
 

Function Documentation

UCHAR FlipByte ( UCHAR  x)

reverse bits in a byte (make it RS232 conform for transmission)

Parameters
xbyte to be reversed
Returns
the flipped byte

Definition at line 53 of file types.c.

Referenced by ISR().

Here is the caller graph for this function:

UCHAR* GetCtrlMode ( CTRL_MODE  ctm,
UCHAR buf 
)

resolve a control mode to hrf string

Parameters
ctmcontrol mode to resolve
bufresolved control mode, must have at least 5 bytes allocated

Definition at line 65 of file types.c.

References CM_DENY, CM_FOR, CM_MEAS, CM_REC, CM_SHDN, and UCHAR.

Referenced by main().

Here is the caller graph for this function:

UINT SetLimitValue ( UINT  val,
DATTYPE  dt,
CHAR  dir,
INT  min,
INT  max 
)

limiting values to constraints

Parameters
valvalue to be limited
dtdata type of value val
dirdirection (increment=1 or decrement=-1) of value modification
minlower value limit
maxupper value limit
Returns

Definition at line 13 of file types.c.

References CHAR, DT_CHAR, DT_INT, DT_UCHAR, DT_UINT, INT, OFF_FAR, OFF_NEAR, UCHAR, and UINT.

Referenced by DoSetup(), and main().

Here is the caller graph for this function: