This section introduces the ISINK APIs including terms and acronyms, supported features, software architecture, how to use this module, ISINK function groups, enums, structures and functions.
More...
This section introduces the ISINK APIs including terms and acronyms, supported features, software architecture, how to use this module, ISINK function groups, enums, structures and functions.
Users can use this API to adjust differnt current output settings through ISINK registers. For example, to adjust the backlight brightness.
Terms and acronyms
| Terms | Details |
| ISINK | Current Sink that provides different current outputs depending on the PMIC setting. |
| PMIC | Power Management Integrated Chip. For an introduction to the Power Management Integrated Chip, please refer to Power management integrated circuit Wikipedia |
How to use this module
- Trigger ISINK different current outputs.
This function deinitializes the ISINK hardware.
- Parameters
-
| [in] | channel | is the ISINK channel number. For more details about the parameter, please refer to hal_isink_channel_t. |
- Returns
- Indicates whether this function call is successful or not. If the return value is HAL_ISINK_STATUS_OK, the operation completed successfully. If the return value is HAL_ISINK_STATUS_ERROR_INVALID_PARAMETER, a wrong parameter is given. The parameter needs to be verified.
- See also
- hal_isink_init()
This function enables the ISINK hardware breath mode.
- Parameters
-
| [in] | channel | is the ISINK channel number. For more details about the parameter, please refer to hal_isink_channel_t. |
| [in] | breath_mode | is the ISINK breath mode setting. For more details about the parameter, please refer to hal_isink_breath_mode_t. |
- Returns
- Indicates whether this function call is successful or not. If the return value is HAL_ISINK_STATUS_OK, the operation completed successfully. If the return value is HAL_ISINK_STATUS_ERROR_INVALID_PARAMETER, a wrong parameter is given. The parameter needs to be verified.
- See also
- hal_isink_set_mode()
This function gets the current status of the ISINK.
- Parameters
-
| [in] | channel | is the ISINK channel number. For more details about the parameter, please refer to hal_isink_channel_t. |
| [out] | running_status | is the ISINK busy or idle status. For more details about this parameter, please refer to hal_isink_running_status_t . |
- Returns
- Indicates whether this function call is successful or not. If the return value is HAL_ISINK_STATUS_OK, the operation completed successfully. If the return value is HAL_ISINK_STATUS_ERROR_INVALID_PARAMETER, a wrong parameter is given. The parameter needs to be verified.
This function sets the ISINK hardware clock source.
- Parameters
-
| [in] | channel | is the ISINK channel number. For more details about the parameter, please refer to hal_isink_channel_t. |
| [in] | source_clock | is the ISINK clock source setting. For more details about the parameter, please refer to hal_isink_clock_source_t. |
- Returns
- Indicates whether this function call is successful or not. If the return value is HAL_ISINK_STATUS_OK, the operation completed successfully. If the return value is HAL_ISINK_STATUS_ERROR_INVALID_PARAMETER, a wrong parameter is given. The parameter needs to be verified.
- See also
- hal_isink_set_mode()
This function sets the ISINK hardware step current.
- Parameters
-
| [in] | channel | is the ISINK channel number. For more details about the parameter, please refer to hal_isink_channel_t. |
| [in] | current | is ISINK current setting. For more details about the parameter, please refer to hal_isink_current_t. |
- Returns
- Indicates whether this function call is successful or not. If the return value is HAL_ISINK_STATUS_OK, the operation completed successfully. If the return value is HAL_ISINK_STATUS_ERROR_INVALID_PARAMETER, a wrong parameter is given. The parameter needs to be verified.
- See also
- hal_isink_set_doule_current()