Block: Constant



PIC




Outports


Out

Constant output






Mask Parameters


Value

Constant factor




Description:

Constant value.

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 48
Revision 0.3
C lename Constant_FiP8.c
H lename Constant_FiP8.h

8 Bit Fixed Point Implementation



Controller Parameters


K

Constant factor




Data Structure:

typedef struct { 
     uint16        ID; 
     int8          Out; 
     int8          K; 
} CONSTANT_FIP8;

Implementation: FiP16


Name FiP16
ID 49
Revision 0.3
C lename Constant_FiP16.c
H lename Constant_FiP16.h

16 Bit Fixed Point Implementation



Controller Parameters


K

Constant factor




Data Structure:

typedef struct { 
     uint16        ID; 
     int16         Out; 
     int16         K; 
} CONSTANT_FIP16;

Implementation: FiP32


Name FiP32
ID 50
Revision 0.3
C lename Constant_FiP32.c
H lename Constant_FiP32.h

32 Bit Fixed Point Implementation



Controller Parameters


K

Constant factor




Data Structure:

typedef struct { 
     uint16        ID; 
     int32         Out; 
     int32         K; 
} CONSTANT_FIP32;

Implementation: Float32


Name Float32
ID 51
Revision 0.1
C lename Constant_Float32.c
H lename Constant_Float32.h

32 Bit Floating Point Implementation



Controller Parameters


K

Constant factor




Data Structure:

typedef struct { 
     uint16        ID; 
     float32       Out; 
     float32       K; 
} CONSTANT_FLOAT32;

Implementation: Float64


Name Float64
ID 52
Revision 0.1
C lename Constant_Float64.c
H lename Constant_Float64.h

64 Bit Floating Point Implementation



Controller Parameters


K

Constant factor




Data Structure:

typedef struct { 
     uint16        ID; 
     float64       Out; 
     float64       K; 
} CONSTANT_FLOAT64;