7 #ifndef __MSP430WARE_MPY_H__ 8 #define __MSP430WARE_MPY_H__ 10 #include "inc/hw_memmap.h" 12 #ifdef __MSP430_HAS_MPY__ 25 #include "inc/hw_memmap.h" 34 #define MPY_MULTIPLY_UNSIGNED (0x00) 35 #define MPY_MULTIPLY_SIGNED (0x02) 36 #define MPY_MULTIPLYACCUMULATE_UNSIGNED (0x04) 37 #define MPY_MULTIPLYACCUMULATE_SIGNED (0x06) 157 #endif // __MSP430WARE_MPY_H__ void MPY_setOperandOne8Bit(uint8_t multiplicationType, uint8_t operand)
Sets an 8-bit value into operand 1.
Definition: mpy.c:21
uint32_t MPY_getResult(void)
Returns an 64-bit result of the last multiplication operation.
Definition: mpy.c:43
void MPY_setOperandTwo16Bit(uint16_t operand)
Sets an 16-bit value into operand 2, which starts the multiplication.
Definition: mpy.c:38
void MPY_setOperandTwo8Bit(uint8_t operand)
Sets an 8-bit value into operand 2, which starts the multiplication.
Definition: mpy.c:33
void MPY_setOperandOne16Bit(uint8_t multiplicationType, uint16_t operand)
Sets an 16-bit value into operand 1.
Definition: mpy.c:27
uint16_t MPY_getSumExtension(void)
Returns the Sum Extension of the last multiplication operation.
Definition: mpy.c:51