Driver for the LEA_SC module. More...
#include "inc/hw_memmap.h"
Go to the source code of this file.
Data Structures | |
struct | LEA_macParams |
Parameter structure that should be paired with the LEA_mac command when using LEA_invokeCommand(). More... | |
struct | LEA_maxParams |
Parameter structure that should be paired with the LEA_max command when using LEA_invokeCommand(). More... | |
struct | LEA_minParams |
Parameter structure that should be paired with the LEA_mi command when using LEA_invokeCommand(). More... | |
struct | LEA_maxUnsignedParams |
Parameter structure that should be paired with the LEA_maxUnsigned command when using LEA_invokeCommand(). More... | |
struct | LEA_minUnsignedParams |
Parameter structure that should be paired with the LEA_minUnsigned command when using LEA_invokeCommand(). More... | |
struct | LEA_addMatrixParams |
Parameter structure that should be paired with the LEA_addMatrix command when using LEA_invokeCommand(). More... | |
struct | LEA_subMatrixParams |
Parameter structure that should be paired with the LEA_subMatrix command when using LEA_invokeCommand(). More... | |
struct | LEA_mpyMatrixParams |
Parameter structure that should be paired with the LEA_mpyMatrix command when using LEA_invokeCommand(). More... | |
struct | LEA_macMatrixParams |
Parameter structure that should be paired with the LEA_macMatrix command when using LEA_invokeCommand(). More... | |
struct | LEA_maxMatrixParams |
Parameter structure that should be paired with the LEA_maxMatrix command when using LEA_invokeCommand(). More... | |
struct | LEA_minMatrixParams |
Parameter structure that should be paired with the LEA_minMatrix command when using LEA_invokeCommand(). More... | |
struct | LEA_mpyMatrixRowParams |
Parameter structure that should be paired with the LEA_mpyMatrixRow command when using LEA_invokeCommand(). More... | |
struct | LEA_mpyComplexMatrixParams |
Parameter structure that should be paired with the LEA_mpyComplexMatrix command when using LEA_invokeCommand(). More... | |
struct | LEA_macComplexMatrixParams |
Parameter structure that should be paired with the LEA_macComplexMatrix command when using LEA_invokeCommand(). More... | |
struct | LEA_macComplexConjugateMatrixParams |
Parameter structure that should be paired with the LEA_macComplexConjugateMatrix command when using LEA_invokeCommand(). More... | |
struct | LEA_maxUnsignedMatrixParams |
Parameter structure that should be paired with the LEA_maxUnsignedMatrix command when using LEA_invokeCommand(). More... | |
struct | LEA_minUnsignedMatrixParams |
Parameter structure that should be paired with the LEA_minUnsignedMatrix command when using LEA_invokeCommand(). More... | |
struct | LEA_addLongMatrixParams |
Parameter structure that should be paired with the LEA_addLongMatrix command when using LEA_invokeCommand(). More... | |
struct | LEA_subLongMatrixParams |
Parameter structure that should be paired with the LEA_subLongMatrix command when using LEA_invokeCommand(). More... | |
struct | LEA_mpyLongMatrixParams |
Parameter structure that should be paired with the LEA_mpyLongMatrix command when using LEA_invokeCommand(). More... | |
struct | LEA_macLongMatrixParams |
Parameter structure that should be paired with the LEA_macLongMatrix command when using LEA_invokeCommand(). More... | |
struct | LEA_maxLongMatrixParams |
Parameter structure that should be paired with the LEA_maxLongMatrix command when using LEA_invokeCommand(). More... | |
struct | LEA_minLongMatrixParams |
Parameter structure that should be paired with the LEA_minLongMatrix command when using LEA_invokeCommand(). More... | |
struct | LEA_maxUnsignedLongMatrixParams |
Parameter structure that should be paired with the LEA_maxUnsignedLongMatrix command when using LEA_invokeCommand(). More... | |
struct | LEA_minUnsignedLongMatrixParams |
Parameter structure that should be paired with the LEA_minUnsignedLongMatrix command when using LEA_invokeCommand(). More... | |
struct | LEA_polynomialParams |
Parameter structure that should be paired with the LEA_polynomial command when using LEA_invokeCommand(). More... | |
struct | LEA_polynomialScalarParams |
Parameter structure that should be paired with the LEA_polynomialScalar command when using LEA_invokeCommand(). More... | |
struct | LEA_polynomialLongParams |
Parameter structure that should be paired with the LEA_polynomialLong command when using LEA_invokeCommand(). More... | |
struct | LEA_firParams |
Parameter structure that should be paired with the LEA_fir command when using LEA_invokeCommand(). More... | |
struct | LEA_firComplexParams |
Parameter structure that should be paired with the LEA_firComplex command when using LEA_invokeCommand(). More... | |
struct | LEA_firLongParams |
Parameter structure that should be paired with the LEA_firLong command when using LEA_invokeCommand(). More... | |
struct | LEA_firComplexLongParams |
Parameter structure that should be paired with the LEA_firComplexLong command when using LEA_invokeCommand(). More... | |
struct | LEA_iirParams |
Parameter structure that should be paired with the LEA_iir command when using LEA_invokeCommand(). More... | |
struct | LEA_biquadWithBiasAndMinMaxParams |
Parameter structure that should be paired with the LEA_biquadWithBiasAndMinMax command when using LEA_invokeCommand(). More... | |
struct | LEA_goertzelParams |
Parameter structure that should be paired with the LEA_goertzel command when using LEA_invokeCommand(). More... | |
struct | LEA_fftParams |
Parameter structure that should be paired with the LEA_fft command when using LEA_invokeCommand(). More... | |
struct | LEA_fftComplexFixedScalingParams |
Parameter structure that should be paired with the LEA_fftComplexFixedScaling command when using LEA_invokeCommand(). More... | |
struct | LEA_fftComplexAutoScalingParams |
Parameter structure that should be paired with the LEA_fftComplexAutoScaling command when using LEA_invokeCommand(). More... | |
struct | LEA_fftLongParams |
Parameter structure that should be paired with the LEA_fftLong command when using LEA_invokeCommand(). More... | |
struct | LEA_fftComplexLongParams |
Parameter structure that should be paired with the LEA_fftComplexLong command when using LEA_invokeCommand(). More... | |
struct | LEA_bitReverseComplexEvenParams |
Parameter structure that should be paired with the LEA_bitReverseComplexEven command when using LEA_invokeCommand(). More... | |
struct | LEA_bitReverseComplexOddParams |
Parameter structure that should be paired with the LEA_bitReverseComplexOdd command when using LEA_invokeCommand(). More... | |
struct | LEA_bitReverseComplexLongEvenParams |
Parameter structure that should be paired with the LEA_bitReverseComplexLongEven command when using LEA_invokeCommand(). More... | |
struct | LEA_bitReverseComplexLongOddParams |
Parameter structure that should be paired with the LEA_bitReverseComplexLongOdd command when using LEA_invokeCommand(). More... | |
struct | LEA_moveLongListParams |
Parameter structure that should be paired with the LEA_moveList command command when using LEA_invokeCommand(). More... | |
struct | LEA_deinterleaveEvenEvenParams |
Parameter structure that should be paired with the LEA_deinterleaveEvenEven command command when using LEA_invokeCommand(). More... | |
struct | LEA_deinterleaveEvenOddParams |
Parameter structure that should be paired with the LEA_deinterleaveEvenOdd command command when using LEA_invokeCommand(). More... | |
struct | LEA_deinterleaveOddEvenParams |
Parameter structure that should be paired with the LEA_deinterleaveOddEven command command when using LEA_invokeCommand(). More... | |
struct | LEA_deinterleaveOddOddParams |
Parameter structure that should be paired with the LEA_deinterleaveOddOdd command command when using LEA_invokeCommand(). More... | |
struct | LEA_deinterleaveLongParams |
Parameter structure that should be paired with the LEA_deinterleaveLong command command when using LEA_invokeCommand(). More... | |
Macros | |
#define | LEA_CONVERT_ADDRESS(x) ((uint16_t)(((uint32_t)(x) >> 2) & 0xffff)) |
Convert MSP430 address to internal LEA address mapping. | |
#define | LEA_COMMAND_COMPLETE_INTERRUPT LEASCPMCMDIE |
Interrupt enable bits used to provide a mask when enabling or disabling LEA interrupts. More... | |
#define | LEA_SCALAR_DATA_INCONSISTENCY_INTERRUPT LEASCSDIIE |
#define | LEA_ADDRESS_OUT_OF_RANGE_INTERRUPT LEASCOORIE |
#define | LEA_COMMAND_OVERFLOW_INTERRUPT LEASCCOVLIE |
#define | LEA_ALL_INTERRUPTS (LEASCPMCMDIE | LEASCSDIIE | LEASCOORIE | LEASCCOVLIE) |
#define | LEA_COMMAND_COMPLETE_INTERRUPT_FLAG LEASCPMCMDIFG |
Interrupt flags used to provide a mask when enabling or disabling LEA interrupts. More... | |
#define | LEA_SCALAR_DATA_INCONSISTENCY_INTERRUPT_FLAG LEASCSDIIFG |
#define | LEA_ADDRESS_OUT_OF_RANGE_INTERRUPT_FLAG LEASCOORIFG |
#define | LEA_COMMAND_OVERFLOW_INTERRUPT_FLAG LEASCCOVLIFG |
#define | LEA_ALL_INTERRUPT_FLAGS (LEASCPMCMDIFG | LEASCSDIIFG | LEASCOORIFG | LEASCCOVLIFG) |
#define | LEA_INVOKE_WITHOUT_INTERRUPTS LEASCITFLG0 |
Interrupt flags used to provide a mask when enabling or disabling LEA interrupts. More... | |
#define | LEA_INVOKE_WITH_INTERRUPTS LEASCITFLG1 |
Enumerations | |
enum | LEA_command { LEA_mac = LEASCCMD__MAC, LEA_max = LEASCCMD__MAX, LEA_min = LEASCCMD__MIN, LEA_maxUnsigned = LEASCCMD__MAXUNSIGNED, LEA_minUnsigned = LEASCCMD__MINUNSIGNED, LEA_addMatrix = LEASCCMD__ADDMATRIX, LEA_subMatrix = LEASCCMD__SUBMATRIX, LEA_mpyMatrix = LEASCCMD__MPYMATRIX, LEA_macMatrix = LEASCCMD__MACMATRIX, LEA_maxMatrix = LEASCCMD__MAXMATRIX, LEA_minMatrix = LEASCCMD__MINMATRIX, LEA_mpyMatrixRow = LEASCCMD__MPYMATRIXROW, LEA_mpyComplexMatrix = LEASCCMD__MPYCOMPLEXMATRIX, LEA_macComplexMatrix = LEASCCMD__MACCOMPLEXMATRIX, LEA_macComplexConjugateMatrix = LEASCCMD__MACCOMPLEXCONJUGATEMATRIX, LEA_maxUnsignedMatrix = LEASCCMD__MAXUNSIGNEDMATRIX, LEA_minUnsignedMatrix = LEASCCMD__MINUNSIGNEDMATRIX, LEA_addLongMatrix = LEASCCMD__ADDLONGMATRIX, LEA_subLongMatrix = LEASCCMD__SUBLONGMATRIX, LEA_mpyLongMatrix = LEASCCMD__MPYLONGMATRIX, LEA_macLongMatrix = LEASCCMD__MACLONGMATRIX, LEA_maxLongMatrix = LEASCCMD__MAXLONGMATRIX, LEA_minLongMatrix = LEASCCMD__MINLONGMATRIX, LEA_maxUnsignedLongMatrix = LEASCCMD__MAXUNSIGNEDLONGMATRIX, LEA_minUnsignedLongMatrix = LEASCCMD__MINUNSIGNEDLONGMATRIX, LEA_polynomial = LEASCCMD__POLYNOMIAL, LEA_polynomialLong = LEASCCMD__POLYNOMIALLONG, LEA_polynomialScalar = LEASCCMD__POLYNOMIALSCALAR, LEA_fir = LEASCCMD__FIR, LEA_firComplex = LEASCCMD__FIRCOMPLEX, LEA_firLong = LEASCCMD__FIRLONG, LEA_firComplexLong = LEASCCMD__FIRCOMPLEXLONG, LEA_iir = LEASCCMD__IIR, LEA_biquadWithBiasAndMinMax = LEASCCMD__BIQUADWITHBIASANDMINMAX, LEA_goertzel = LEASCCMD__GOERTZEL, LEA_fft = LEASCCMD__FFT, LEA_fftComplexAutoScaling = LEASCCMD__FFTCOMPLEXAUTOSCALING, LEA_fftComplexFixedScaling = LEASCCMD__FFTCOMPLEXFIXEDSCALING, LEA_fftLong = LEASCCMD__FFTLONG, LEA_fftComplexLong = LEASCCMD__FFTCOMPLEXLONG, LEA_bitReverseComplexEven = LEASCCMD__BITREVERSECOMPLEXEVEN, LEA_bitReverseComplexOdd = LEASCCMD__BITREVERSECOMPLEXODD, LEA_bitReverseComplexLongEven = LEASCCMD__BITREVERSECOMPLEXLONGEVEN, LEA_bitReverseComplexLongOdd = LEASCCMD__BITREVERSECOMPLEXLONGODD, LEA_moveLongList = LEASCCMD__MOVELONGLIST, LEA_deinterleaveEvenEven = LEASCCMD__DEINTERLEAVEEVENEVEN, LEA_deinterleaveEvenOdd = LEASCCMD__DEINTERLEAVEEVENODD, LEA_deinterleaveOddEven = LEASCCMD__DEINTERLEAVEODDEVEN, LEA_deinterleaveOddOdd = LEASCCMD__DEINTERLEAVEODDODD, LEA_deinterleaveLong = LEASCCMD__DEINTERLEAVELONG } |
The following values can be passed in the command argument of the LEA_invokeCommand() function to invoke a specific LEA command. | |
Functions | |
void | LEA_init (uint32_t stackPointer, bool enableExecutonInLPM, bool enableInterruptInLPM) |
This function initializes the LEA peripheral and initializes the LEA functions for use. More... | |
void | LEA_terminate (void) |
This function terminates any running LEA operations and disables the module operation. More... | |
void | LEA_enableInterrupt (uint16_t mask) |
Enables individual LEA interrupt sources. More... | |
void | LEA_disableInterrupt (uint16_t mask) |
Disables individual LEA interrupt sources. More... | |
uint16_t | LEA_getInterruptStatus (uint16_t mask) |
Gets the current LEA interrupt status. More... | |
void | LEA_clearInterrupt (uint16_t mask) |
Clears LEA interrupt sources. More... | |
void | LEA_setInterruptFlag (uint16_t mask) |
Set LEA interrupt sources. More... | |
void | LEA_enable (void) |
Enables LEA for operation. More... | |
void | LEA_disable (void) |
Halts operation and disables LEA. More... | |
bool | LEA_isBusy (void) |
Check to see if LEA is busy executing a command. More... | |
bool | LEA_isFree (void) |
Check to see if LEA is free to accept a new command. More... | |
bool | LEA_isResultReady (void) |
Check to see if the previous command has completed and the result is ready to be read. More... | |
uint32_t | LEA_getResult (void) |
This function returns the result of a LEA command. More... | |
void | LEA_invokeCommand (LEA_command command, void *params, uint16_t mode) |
This function will invoke a specified LEA command with or without interrupts. More... | |
void | LEA_enterLpmWithInterrupts (uint16_t mode) |
This function will enter low power modes with interrupts enabled. More... | |
Driver for the LEA_SC module.