Collaboration diagram for Functions:Functions | |
| hal_status_t | hal_bod_init (bod_handle_t *p_bod) |
| Initialize the BOD according to the specified parameters in the bod_init_t and initialize the associated handle. More... | |
| hal_status_t | hal_bod_deinit (bod_handle_t *p_bod) |
| De-initialize the BOD peripheral. More... | |
| void | hal_bod_msp_init (bod_handle_t *p_bod) |
| Initialize the BOD MSP. More... | |
| void | hal_bod_msp_deinit (bod_handle_t *p_bod) |
| De-initialize the BOD MSP. More... | |
| void | hal_bod_fedge_callback (bod_handle_t *p_bod) |
| BOD fall edge callback. More... | |
| void | hal_bod_redge_callback (bod_handle_t *p_bod) |
| BOD rise edge callback. More... | |
| void | hal_bod_fedge_irq_handler (bod_handle_t *p_bod) |
| Handle BOD fall edge interrupt request. More... | |
| void | hal_bod_redge_irq_handler (bod_handle_t *p_bod) |
| Handle BOD rise edge interrupt request. More... | |
| hal_status_t | hal_bod_enable (bod_handle_t *p_bod, uint8_t enable) |
| enable bod More... | |
| hal_status_t | hal_bod2_enable (bod_handle_t *p_bod, uint8_t enable) |
| enable bod2 More... | |
| hal_status_t | hal_bod2_set_level (bod_handle_t *p_bod, uint8_t level) |
| Set BOD2 control level. More... | |
| hal_status_t | hal_bod_static_mode_enable (bod_handle_t *p_bod, uint8_t enable) |
| enable/disable static mode More... | |
| hal_status_t hal_bod2_enable | ( | bod_handle_t * | p_bod, |
| uint8_t | enable | ||
| ) |
enable bod2
| [in] | p_bod | Pointer to an BOD handle which contains the configuration information for the specified BOD module. |
| [in] | enable | bod2 enable flag. the value can be HAL_BOD2_ENABLE or HAL_BOD2_DISABLE |
| HAL_OK | Operation is OK. |
| HAL_ERROR | Parameter error or operation not supported. |
| HAL_BUSY | Driver is busy. |
| HAL_TIMEOUT | Timeout occurred. |
| hal_status_t hal_bod2_set_level | ( | bod_handle_t * | p_bod, |
| uint8_t | level | ||
| ) |
Set BOD2 control level.
| [in] | p_bod | Pointer to an BOD handle which contains the configuration information for the specified BOD module. |
| [in] | level | the level of bod2 control.the value range between 0x0 ~ 0xF |
| HAL_OK | Operation is OK. |
| HAL_ERROR | Parameter error or operation not supported. |
| HAL_BUSY | Driver is busy. |
| HAL_TIMEOUT | Timeout occurred. |
| hal_status_t hal_bod_deinit | ( | bod_handle_t * | p_bod | ) |
De-initialize the BOD peripheral.
| [in] | p_bod | Pointer to an BOD handle which contains the configuration information for the specified BOD module. |
| HAL_OK | Operation is OK. |
| HAL_ERROR | Parameter error or operation not supported. |
| HAL_BUSY | Driver is busy. |
| HAL_TIMEOUT | Timeout occurred. |
| hal_status_t hal_bod_enable | ( | bod_handle_t * | p_bod, |
| uint8_t | enable | ||
| ) |
enable bod
| [in] | p_bod | Pointer to an BOD handle which contains the configuration information for the specified BOD module. |
| [in] | enable | bod enable flag. the value can be HAL_BOD_ENABLE or HAL_BOD_DISABLE |
| HAL_OK | Operation is OK. |
| HAL_ERROR | Parameter error or operation not supported. |
| HAL_BUSY | Driver is busy. |
| HAL_TIMEOUT | Timeout occurred. |
| void hal_bod_fedge_callback | ( | bod_handle_t * | p_bod | ) |
BOD fall edge callback.
| [in] | p_bod | Pointer to an BOD handle which contains the configuration information for the specified BOD module. |
| void hal_bod_fedge_irq_handler | ( | bod_handle_t * | p_bod | ) |
Handle BOD fall edge interrupt request.
| [in] | p_bod | Pointer to an BOD handle which contains the configuration information for the specified BOD module. |
| hal_status_t hal_bod_init | ( | bod_handle_t * | p_bod | ) |
Initialize the BOD according to the specified parameters in the bod_init_t and initialize the associated handle.
| [in] | p_bod | Pointer to an BOD handle which contains the configuration information for the specified BOD module. |
| HAL_OK | Operation is OK. |
| HAL_ERROR | Parameter error or operation not supported. |
| HAL_BUSY | Driver is busy. |
| HAL_TIMEOUT | Timeout occurred. |
| void hal_bod_msp_deinit | ( | bod_handle_t * | p_bod | ) |
De-initialize the BOD MSP.
| [in] | p_bod | Pointer to an BOD handle which contains the configuration information for the specified BOD module. |
| void hal_bod_msp_init | ( | bod_handle_t * | p_bod | ) |
Initialize the BOD MSP.
| [in] | p_bod | Pointer to an BOD handle which contains the configuration information for the specified BOD module. |
| void hal_bod_redge_callback | ( | bod_handle_t * | p_bod | ) |
BOD rise edge callback.
| [in] | p_bod | Pointer to an BOD handle which contains the configuration information for the specified BOD module. |
| void hal_bod_redge_irq_handler | ( | bod_handle_t * | p_bod | ) |
Handle BOD rise edge interrupt request.
| [in] | p_bod | Pointer to an BOD handle which contains the configuration information for the specified BOD module. |
| hal_status_t hal_bod_static_mode_enable | ( | bod_handle_t * | p_bod, |
| uint8_t | enable | ||
| ) |
enable/disable static mode
| [in] | p_bod | Pointer to an BOD handle which contains the configuration information for the specified BOD module. |
| [in] | enable | static enable flag. the value can be HAL_BOD_STATIC_ENABLE or HAL_BOD_STATIC_DISABLE |
| HAL_OK | Operation is OK. |
| HAL_ERROR | Parameter error or operation not supported. |
| HAL_BUSY | Driver is busy. |
| HAL_TIMEOUT | Timeout occurred. |