Logo
MSP DSP Library
Types

Macros

#define INT16_MIN   0x8000
 Define C std macros not available in C++ (for Energia).
 
#define INT16_MAX   0x7fff
 Define C std macros not available in C++ (for Energia).
 
#define INT32_MIN   0x80000000
 Define C std macros not available in C++ (for Energia).
 
#define INT32_MAX   0x7fffffff
 Define C std macros not available in C++ (for Energia).
 

Typedefs

typedef int16_t _q15
 Signed fixed point data type with 1 integer bit and 15 fractional bits.
 
typedef uint16_t _uq15
 Unsigned fixed point data type with 0 integer bit and 16 fractional bits.
 
typedef int32_t _iq31
 Signed fixed point data type with 1 integer bit and 31 fractional bits.
 
typedef uint32_t _uq31
 Unsigned fixed point data type with 0 integer bits and 32 fractional bits.
 

Enumerations

enum  msp_status {
  MSP_SUCCESS = 0, MSP_SIZE_ERROR = 1, MSP_SHIFT_SIZE_ERROR = 2, MSP_TABLE_SIZE_ERROR = 3,
  MSP_LEA_BUSY = 4, MSP_LEA_INVALID_ADDRESS = 5, MSP_LEA_OUT_OF_RANGE = 6, MSP_LEA_SCALAR_INCONSISTENCY = 7,
  MSP_LEA_COMMAND_OVERFLOW = 8, MSP_LEA_INCORRECT_REVISION = 9
}
 Enumerated type to return the status of an operation. More...
 

Detailed Description

Definitions of types used in DSPLib.

Enumeration Type Documentation

enum msp_status

Enumerated type to return the status of an operation.

Enumerator
MSP_SUCCESS 

Successful operation.

MSP_SIZE_ERROR 

Invalid size, see API for restrictions.

MSP_SHIFT_SIZE_ERROR 

Invalid shift size, see API for restrictions.

MSP_TABLE_SIZE_ERROR 

Invalid table size, see API for restrictions.

MSP_LEA_BUSY 

LEA is busy and cannot be invoked.

MSP_LEA_INVALID_ADDRESS 

Address is not within LEA RAM section.

MSP_LEA_OUT_OF_RANGE 

Command resulted in out of range memory access.

MSP_LEA_SCALAR_INCONSISTENCY 

LEA scalar data inconsistency error.

MSP_LEA_COMMAND_OVERFLOW 

LEA command overflow error.

MSP_LEA_INCORRECT_REVISION 

LEA incorrect revision.