Neural network CNN accelerator. More...
Data Structures | |
| struct | NNACC_ConfigTypeDef |
| Neural nextwork calulation configuration. More... | |
| struct | __NNACC_HandleTypeDef |
Typedefs | |
| typedef struct __NNACC_HandleTypeDef | NNACC_HandleTypeDef |
Enumerations | |
| enum | HAL_NNACC_StateTypeDef { HAL_NNACC_STATE_RESET = 0x00U, HAL_NNACC_STATE_READY = 0x01U, HAL_NNACC_STATE_BUSY = 0x02U, HAL_NNACC_STATE_TIMEOUT = 0x03U, HAL_NNACC_STATE_ERROR = 0x04U, HAL_NNACC_STATE_SUSPEND = 0x05U } |
| HAL NNACC State structures definition. More... | |
| enum | HAL_NNACC_ModeTypeDef { HAL_NNACC_MODE_CONV2D, HAL_NNACC_MODE_CONV2D_UNSIGNED, HAL_NNACC_MODE_DEPTHWISE_CONV2D, HAL_NNACC_MODE_DEPTHWISE_CONV2D_UNSIGNED } |
Functions | |
| HAL_StatusTypeDef | HAL_NNACC_Init (NNACC_HandleTypeDef *nn_acc) |
| initialize the Neural network accelerator More... | |
| HAL_StatusTypeDef | HAL_NNACC_Start (NNACC_HandleTypeDef *nn_acc, NNACC_ConfigTypeDef *config) |
| Start Neural network CNN calulation. More... | |
| HAL_StatusTypeDef | HAL_NNACC_Start_IT (NNACC_HandleTypeDef *nn_acc, NNACC_ConfigTypeDef *config) |
| Start Neural network CNN calulation with interrupt mode. More... | |
| void | HAL_NNACC_IRQHandler (NNACC_HandleTypeDef *nn_acc) |
| CNN calulation interrupt handler. More... | |
Neural network CNN accelerator.
HAL NNACC State structures definition.
| HAL_StatusTypeDef HAL_NNACC_Init | ( | NNACC_HandleTypeDef * | nn_acc | ) |
initialize the Neural network accelerator
| [in] | nn_acc | The Neural network accelerator instance |
| HAL_OK | if success, otherwise failed. |
| void HAL_NNACC_IRQHandler | ( | NNACC_HandleTypeDef * | nn_acc | ) |
CNN calulation interrupt handler.
| [in] | nn_acc | The Neural network accelerator instance |
| None. |
| HAL_StatusTypeDef HAL_NNACC_Start | ( | NNACC_HandleTypeDef * | nn_acc, |
| NNACC_ConfigTypeDef * | config | ||
| ) |
Start Neural network CNN calulation.
| [in] | nn_acc | The Neural network accelerator instance |
| [in] | config | CNN configuration |
| HAL_OK | if success, otherwise failed. |
| HAL_StatusTypeDef HAL_NNACC_Start_IT | ( | NNACC_HandleTypeDef * | nn_acc, |
| NNACC_ConfigTypeDef * | config | ||
| ) |
Start Neural network CNN calulation with interrupt mode.
| [in] | nn_acc | The Neural network accelerator instance |
| [in] | config | CNN configuration |
| HAL_OK | if success, otherwise failed. |