Block: uGain



PIC




Inports


In

Input






Outports


Out

Amplified input






Mask Parameters


Gain

Gain factor in floating point format




Description:

Amplification of input by gain factor without output limitation.

Implementations:
FiP8 8 Bit Fixed Point Implementation
FiP16 16 Bit Fixed Point Implementation
FiP32 32 Bit Fixed Point Implementation

Implementation: FiP8


Name FiP8
ID 32
Revision 1.0
C filename uGain_FiP8.c
H filename uGain_FiP8.h

8 Bit Fixed Point Implementation



Controller Parameters


V

Gain factor



sfr

Shift factor




Data Structure:

typedef struct { 
     uint16        ID; 
     int8          *In; 
     int8          Out; 
     int8          V; 
     int8          sfr; 
} UGAIN_FIP8;

Implementation: FiP16


Name FiP16
ID 33
Revision 1.0
C filename uGain_FiP16.c
H filename uGain_FiP16.h

16 Bit Fixed Point Implementation



Controller Parameters


V

Gain factor



sfr

Shift factor




Data Structure:

typedef struct { 
     uint16        ID; 
     int16         *In; 
     int16         Out; 
     int16         V; 
     int8          sfr; 
} UGAIN_FIP16;

Implementation: FiP32


Name FiP32
ID 34
Revision 1.0
C filename uGain_FiP32.c
H filename uGain_FiP32.h

32 Bit Fixed Point Implementation



Controller Parameters


V

Gain factor



sfr

Shift factor




Data Structure:

typedef struct { 
     uint16        ID; 
     int32         *In; 
     int32         Out; 
     int32         V; 
     int8          sfr; 
} UGAIN_FIP32;