Block: Saturation



PIC




Inports


In

Input






Outports


Out

Limited output






Mask Parameters


max

Upper Limit



min

Lower Limit




Description:

Saturation of output to adjustable upper and lower limit.

If the entry for Upper Limit is lower than the entry for Lower Limit then the limits will be swapped internally.

Implementations:
FiP8 8 Bit Fixed Point Implementation
FiP16 16 Bit Fixed Point Implementation
FiP32 32 Bit Fixed Point Implementation
Float32 32 Bit Floating Point Implementation
Float64 64 Bit Floating Point Implementation

Implementation: FiP8


Name FiP8
ID 80
Revision 1.0
C filename Saturation_FiP8.c
H filename Saturation_FiP8.h

8 Bit Fixed Point Implementation



Controller Parameters


max

Upper limit



min

Lower limit




Data Structure:

typedef struct { 
     uint16        ID; 
     int8          *In; 
     int8          Out; 
     int8          max; 
     int8          min; 
} SATURATION_FIP8;

Implementation: FiP16


Name FiP16
ID 81
Revision 1.0
C filename Saturation_FiP16.c
H filename Saturation_FiP16.h

16 Bit Fixed Point Implementation



Controller Parameters


max

Upper limit



min

Lower limit




Data Structure:

typedef struct { 
     uint16        ID; 
     int16         *In; 
     int16         Out; 
     int16         max; 
     int16         min; 
} SATURATION_FIP16;

Implementation: FiP32


Name FiP32
ID 82
Revision 1.0
C filename Saturation_FiP32.c
H filename Saturation_FiP32.h

32 Bit Fixed Point Implementation



Controller Parameters


max

Upper limit



min

Lower limit




Data Structure:

typedef struct { 
     uint16        ID; 
     int32         *In; 
     int32         Out; 
     int32         max; 
     int32         min; 
} SATURATION_FIP32;

Implementation: Float32


Name Float32
ID 83
Revision 0.1
C filename Saturation_Float32.c
H filename Saturation_Float32.h

32 Bit Floating Point Implementation



Controller Parameters


max

Upper limit



min

Lower limit




Data Structure:

typedef struct { 
     uint16        ID; 
     float32       *In; 
     float32       Out; 
     float32       max; 
     float32       min; 
} SATURATION_FLOAT32;

Implementation: Float64


Name Float64
ID 84
Revision 0.1
C filename Saturation_Float64.c
H filename Saturation_Float64.h

64 Bit Floating Point Implementation



Controller Parameters


max

Upper limit



min

Lower limit




Data Structure:

typedef struct { 
     uint16        ID; 
     float64       *In; 
     float64       Out; 
     float64       max; 
     float64       min; 
} SATURATION_FLOAT64;