![]() |
MAX32665 SDK Documentation
0.2
Software Development Kit Overview and API Documentation
|
Macros | |
| #define | MAA_MAX_SIZE 256 |
| #define | MAA_MAX_WORD_SIZE 2048 |
Functions | |
| void | MAA_Reset (void) |
| Reset the TPU accelerator. | |
| int | MAA_Init (unsigned int size) |
| Configure MAA operation with appropriate MAA word size. More... | |
| int | MAA_Shutdown (void) |
| Release MAA. More... | |
| int | MAA_Compute (tpu_maa_clcsel_t clc, char *multiplier, char *multiplicand, char *exp, char *mod, int *result, unsigned int len) |
| MAA operation. More... | |
| int MAA_Init | ( | unsigned int | size | ) |
| size | Defines the number of bits for modular operation |
size, out of range | int MAA_Shutdown | ( | void | ) |
Shuts down the MAA engine and any associated clocks
| int MAA_Compute | ( | tpu_maa_clcsel_t | clc, |
| char * | multiplier, | ||
| char * | multiplicand, | ||
| char * | exp, | ||
| char * | mod, | ||
| int * | result, | ||
| unsigned int | len | ||
| ) |
| clc | Selects the MAA calculation operation |
| multiplier | Pointer to multiplier data |
| multiplicand | Pointer to multiplicand data |
| exp | Pointer to exponent data |
| mod | Pointer to modular data |
| result | Output buffer |
| len | Specifies length to the nearest 32-bit boundary |
multiplier; multiplicand; exp; mod points to null multiplier; multiplicand; exp; mod, data must be loaded with zero pad to specified length len, or the "garbage bits" will case erroneous results