STM32F4xx_HAL_Driver
1.8.3
|
Peripheral Control functions. More...
Functions | |
HAL_StatusTypeDef | HAL_DSI_SetGenericVCID (DSI_HandleTypeDef *hdsi, uint32_t VirtualChannelID) |
Configure the Generic interface read-back Virtual Channel ID. More... | |
HAL_StatusTypeDef | HAL_DSI_ConfigVideoMode (DSI_HandleTypeDef *hdsi, DSI_VidCfgTypeDef *VidCfg) |
Select video mode and configure the corresponding parameters. More... | |
HAL_StatusTypeDef | HAL_DSI_ConfigAdaptedCommandMode (DSI_HandleTypeDef *hdsi, DSI_CmdCfgTypeDef *CmdCfg) |
Select adapted command mode and configure the corresponding parameters. More... | |
HAL_StatusTypeDef | HAL_DSI_ConfigCommand (DSI_HandleTypeDef *hdsi, DSI_LPCmdTypeDef *LPCmd) |
Configure command transmission mode: High-speed or Low-power and enable/disable acknowledge request after packet transmission. More... | |
HAL_StatusTypeDef | HAL_DSI_ConfigFlowControl (DSI_HandleTypeDef *hdsi, uint32_t FlowControl) |
Configure the flow control parameters. More... | |
HAL_StatusTypeDef | HAL_DSI_ConfigPhyTimer (DSI_HandleTypeDef *hdsi, DSI_PHY_TimerTypeDef *PhyTimers) |
Configure the DSI PHY timer parameters. More... | |
HAL_StatusTypeDef | HAL_DSI_ConfigHostTimeouts (DSI_HandleTypeDef *hdsi, DSI_HOST_TimeoutTypeDef *HostTimeouts) |
Configure the DSI HOST timeout parameters. More... | |
HAL_StatusTypeDef | HAL_DSI_Start (DSI_HandleTypeDef *hdsi) |
Start the DSI module. More... | |
HAL_StatusTypeDef | HAL_DSI_Stop (DSI_HandleTypeDef *hdsi) |
Stop the DSI module. More... | |
HAL_StatusTypeDef | HAL_DSI_Refresh (DSI_HandleTypeDef *hdsi) |
Refresh the display in command mode. More... | |
HAL_StatusTypeDef | HAL_DSI_ColorMode (DSI_HandleTypeDef *hdsi, uint32_t ColorMode) |
Controls the display color mode in Video mode. More... | |
HAL_StatusTypeDef | HAL_DSI_Shutdown (DSI_HandleTypeDef *hdsi, uint32_t Shutdown) |
Control the display shutdown in Video mode. More... | |
HAL_StatusTypeDef | HAL_DSI_ShortWrite (DSI_HandleTypeDef *hdsi, uint32_t ChannelID, uint32_t Mode, uint32_t Param1, uint32_t Param2) |
write short DCS or short Generic command More... | |
HAL_StatusTypeDef | HAL_DSI_LongWrite (DSI_HandleTypeDef *hdsi, uint32_t ChannelID, uint32_t Mode, uint32_t NbParams, uint32_t Param1, const uint8_t *ParametersTable) |
write long DCS or long Generic command More... | |
HAL_StatusTypeDef | HAL_DSI_Read (DSI_HandleTypeDef *hdsi, uint32_t ChannelNbr, uint8_t *Array, uint32_t Size, uint32_t Mode, uint32_t DCSCmd, uint8_t *ParametersTable) |
Read command (DCS or generic) More... | |
HAL_StatusTypeDef | HAL_DSI_EnterULPMData (DSI_HandleTypeDef *hdsi) |
Enter the ULPM (Ultra Low Power Mode) with the D-PHY PLL running (only data lanes are in ULPM) More... | |
HAL_StatusTypeDef | HAL_DSI_ExitULPMData (DSI_HandleTypeDef *hdsi) |
Exit the ULPM (Ultra Low Power Mode) with the D-PHY PLL running (only data lanes are in ULPM) More... | |
HAL_StatusTypeDef | HAL_DSI_EnterULPM (DSI_HandleTypeDef *hdsi) |
Enter the ULPM (Ultra Low Power Mode) with the D-PHY PLL turned off (both data and clock lanes are in ULPM) More... | |
HAL_StatusTypeDef | HAL_DSI_ExitULPM (DSI_HandleTypeDef *hdsi) |
Exit the ULPM (Ultra Low Power Mode) with the D-PHY PLL turned off (both data and clock lanes are in ULPM) More... | |
HAL_StatusTypeDef | HAL_DSI_PatternGeneratorStart (DSI_HandleTypeDef *hdsi, uint32_t Mode, uint32_t Orientation) |
Start test pattern generation. More... | |
HAL_StatusTypeDef | HAL_DSI_PatternGeneratorStop (DSI_HandleTypeDef *hdsi) |
Stop test pattern generation. More... | |
HAL_StatusTypeDef | HAL_DSI_SetSlewRateAndDelayTuning (DSI_HandleTypeDef *hdsi, uint32_t CommDelay, uint32_t Lane, uint32_t Value) |
Set Slew-Rate And Delay Tuning. More... | |
HAL_StatusTypeDef | HAL_DSI_SetLowPowerRXFilter (DSI_HandleTypeDef *hdsi, uint32_t Frequency) |
Low-Power Reception Filter Tuning. More... | |
HAL_StatusTypeDef | HAL_DSI_SetSDD (DSI_HandleTypeDef *hdsi, FunctionalState State) |
Activate an additional current path on all lanes to meet the SDDTx parameter defined in the MIPI D-PHY specification. More... | |
HAL_StatusTypeDef | HAL_DSI_SetLanePinsConfiguration (DSI_HandleTypeDef *hdsi, uint32_t CustomLane, uint32_t Lane, FunctionalState State) |
Custom lane pins configuration. More... | |
HAL_StatusTypeDef | HAL_DSI_SetPHYTimings (DSI_HandleTypeDef *hdsi, uint32_t Timing, FunctionalState State, uint32_t Value) |
Set custom timing for the PHY. More... | |
HAL_StatusTypeDef | HAL_DSI_ForceTXStopMode (DSI_HandleTypeDef *hdsi, uint32_t Lane, FunctionalState State) |
Force the Clock/Data Lane in TX Stop Mode. More... | |
HAL_StatusTypeDef | HAL_DSI_ForceRXLowPower (DSI_HandleTypeDef *hdsi, FunctionalState State) |
Force LP Receiver in Low-Power Mode. More... | |
HAL_StatusTypeDef | HAL_DSI_ForceDataLanesInRX (DSI_HandleTypeDef *hdsi, FunctionalState State) |
Force Data Lanes in RX Mode after a BTA. More... | |
HAL_StatusTypeDef | HAL_DSI_SetPullDown (DSI_HandleTypeDef *hdsi, FunctionalState State) |
Enable a pull-down on the lanes to prevent from floating states when unused. More... | |
HAL_StatusTypeDef | HAL_DSI_SetContentionDetectionOff (DSI_HandleTypeDef *hdsi, FunctionalState State) |
Switch off the contention detection on data lanes. More... | |
Peripheral Control functions.
=============================================================================== ##### Peripheral Control functions ##### =============================================================================== [..] This section provides functions allowing to: (+) Configure the Generic interface read-back Virtual Channel ID (+) Select video mode and configure the corresponding parameters (+) Configure command transmission mode: High-speed or Low-power (+) Configure the flow control (+) Configure the DSI PHY timer (+) Configure the DSI HOST timeout (+) Configure the DSI HOST timeout (+) Start/Stop the DSI module (+) Refresh the display in command mode (+) Controls the display color mode in Video mode (+) Control the display shutdown in Video mode (+) write short DCS or short Generic command (+) write long DCS or long Generic command (+) Read command (DCS or generic) (+) Enter/Exit the Ultra Low Power Mode on data only (D-PHY PLL running) (+) Enter/Exit the Ultra Low Power Mode on data only and clock (D-PHY PLL turned off) (+) Start/Stop test pattern generation (+) Slew-Rate And Delay Tuning (+) Low-Power Reception Filter Tuning (+) Activate an additional current path on all lanes to meet the SDDTx parameter (+) Custom lane pins configuration (+) Set custom timing for the PHY (+) Force the Clock/Data Lane in TX Stop Mode (+) Force LP Receiver in Low-Power Mode (+) Force Data Lanes in RX Mode after a BTA (+) Enable a pull-down on the lanes to prevent from floating states when unused (+) Switch off the contention detection on data lanes
HAL_StatusTypeDef HAL_DSI_ColorMode | ( | DSI_HandleTypeDef * | hdsi, |
uint32_t | ColorMode | ||
) |
Controls the display color mode in Video mode.
hdsi | pointer to a DSI_HandleTypeDef structure that contains the configuration information for the DSI. |
ColorMode | Color mode (full or 8-colors). This parameter can be any value of
|
HAL | status |
Definition at line 1569 of file stm32f4xx_hal_dsi.c.
HAL_StatusTypeDef HAL_DSI_ConfigAdaptedCommandMode | ( | DSI_HandleTypeDef * | hdsi, |
DSI_CmdCfgTypeDef * | CmdCfg | ||
) |
Select adapted command mode and configure the corresponding parameters.
hdsi | pointer to a DSI_HandleTypeDef structure that contains the configuration information for the DSI. |
CmdCfg | pointer to a DSI_CmdCfgTypeDef structure that contains the DSI command mode configuration parameters |
HAL | status |
Definition at line 1241 of file stm32f4xx_hal_dsi.c.
HAL_StatusTypeDef HAL_DSI_ConfigCommand | ( | DSI_HandleTypeDef * | hdsi, |
DSI_LPCmdTypeDef * | LPCmd | ||
) |
Configure command transmission mode: High-speed or Low-power and enable/disable acknowledge request after packet transmission.
hdsi | pointer to a DSI_HandleTypeDef structure that contains the configuration information for the DSI. |
LPCmd | pointer to a DSI_LPCmdTypeDef structure that contains the DSI command transmission mode configuration parameters |
HAL | status |
Definition at line 1312 of file stm32f4xx_hal_dsi.c.
HAL_StatusTypeDef HAL_DSI_ConfigFlowControl | ( | DSI_HandleTypeDef * | hdsi, |
uint32_t | FlowControl | ||
) |
Configure the flow control parameters.
hdsi | pointer to a DSI_HandleTypeDef structure that contains the configuration information for the DSI. |
FlowControl | flow control feature(s) to be enabled. This parameter can be any combination of
|
HAL | status |
Definition at line 1375 of file stm32f4xx_hal_dsi.c.
HAL_StatusTypeDef HAL_DSI_ConfigHostTimeouts | ( | DSI_HandleTypeDef * | hdsi, |
DSI_HOST_TimeoutTypeDef * | HostTimeouts | ||
) |
Configure the DSI HOST timeout parameters.
hdsi | pointer to a DSI_HandleTypeDef structure that contains the configuration information for the DSI. |
HostTimeouts | DSI_HOST_TimeoutTypeDef structure that contains the DSI host timeout parameters |
HAL | status |
Definition at line 1448 of file stm32f4xx_hal_dsi.c.
HAL_StatusTypeDef HAL_DSI_ConfigPhyTimer | ( | DSI_HandleTypeDef * | hdsi, |
DSI_PHY_TimerTypeDef * | PhyTimers | ||
) |
Configure the DSI PHY timer parameters.
hdsi | pointer to a DSI_HandleTypeDef structure that contains the configuration information for the DSI. |
PhyTimers | DSI_PHY_TimerTypeDef structure that contains the DSI PHY timing parameters |
HAL | status |
Definition at line 1401 of file stm32f4xx_hal_dsi.c.
HAL_StatusTypeDef HAL_DSI_ConfigVideoMode | ( | DSI_HandleTypeDef * | hdsi, |
DSI_VidCfgTypeDef * | VidCfg | ||
) |
Select video mode and configure the corresponding parameters.
hdsi | pointer to a DSI_HandleTypeDef structure that contains the configuration information for the DSI. |
VidCfg | pointer to a DSI_VidCfgTypeDef structure that contains the DSI video mode configuration parameters |
HAL | status |
Definition at line 1091 of file stm32f4xx_hal_dsi.c.
HAL_StatusTypeDef HAL_DSI_EnterULPM | ( | DSI_HandleTypeDef * | hdsi | ) |
Enter the ULPM (Ultra Low Power Mode) with the D-PHY PLL turned off (both data and clock lanes are in ULPM)
hdsi | pointer to a DSI_HandleTypeDef structure that contains the configuration information for the DSI. |
HAL | status |
Definition at line 2194 of file stm32f4xx_hal_dsi.c.
HAL_StatusTypeDef HAL_DSI_EnterULPMData | ( | DSI_HandleTypeDef * | hdsi | ) |
Enter the ULPM (Ultra Low Power Mode) with the D-PHY PLL running (only data lanes are in ULPM)
hdsi | pointer to a DSI_HandleTypeDef structure that contains the configuration information for the DSI. |
HAL | status |
Definition at line 1866 of file stm32f4xx_hal_dsi.c.
HAL_StatusTypeDef HAL_DSI_ExitULPM | ( | DSI_HandleTypeDef * | hdsi | ) |
Exit the ULPM (Ultra Low Power Mode) with the D-PHY PLL turned off (both data and clock lanes are in ULPM)
hdsi | pointer to a DSI_HandleTypeDef structure that contains the configuration information for the DSI. |
HAL | status |
Definition at line 2356 of file stm32f4xx_hal_dsi.c.
HAL_StatusTypeDef HAL_DSI_ExitULPMData | ( | DSI_HandleTypeDef * | hdsi | ) |
Exit the ULPM (Ultra Low Power Mode) with the D-PHY PLL running (only data lanes are in ULPM)
hdsi | pointer to a DSI_HandleTypeDef structure that contains the configuration information for the DSI. |
HAL | status |
Definition at line 2018 of file stm32f4xx_hal_dsi.c.
HAL_StatusTypeDef HAL_DSI_ForceDataLanesInRX | ( | DSI_HandleTypeDef * | hdsi, |
FunctionalState | State | ||
) |
Force Data Lanes in RX Mode after a BTA.
hdsi | pointer to a DSI_HandleTypeDef structure that contains the configuration information for the DSI. |
State | ENABLE or DISABLE |
HAL | status |
Definition at line 3043 of file stm32f4xx_hal_dsi.c.
HAL_StatusTypeDef HAL_DSI_ForceRXLowPower | ( | DSI_HandleTypeDef * | hdsi, |
FunctionalState | State | ||
) |
Force LP Receiver in Low-Power Mode.
hdsi | pointer to a DSI_HandleTypeDef structure that contains the configuration information for the DSI. |
State | ENABLE or DISABLE |
HAL | status |
Definition at line 3018 of file stm32f4xx_hal_dsi.c.
HAL_StatusTypeDef HAL_DSI_ForceTXStopMode | ( | DSI_HandleTypeDef * | hdsi, |
uint32_t | Lane, | ||
FunctionalState | State | ||
) |
Force the Clock/Data Lane in TX Stop Mode.
hdsi | pointer to a DSI_HandleTypeDef structure that contains the configuration information for the DSI. |
Lane | select between clock or data lanes. This parameter can be any value of
|
State | ENABLE or DISABLE |
HAL | status |
Definition at line 2976 of file stm32f4xx_hal_dsi.c.
HAL_StatusTypeDef HAL_DSI_LongWrite | ( | DSI_HandleTypeDef * | hdsi, |
uint32_t | ChannelID, | ||
uint32_t | Mode, | ||
uint32_t | NbParams, | ||
uint32_t | Param1, | ||
const uint8_t * | ParametersTable | ||
) |
write long DCS or long Generic command
hdsi | pointer to a DSI_HandleTypeDef structure that contains the configuration information for the DSI. |
ChannelID | Virtual channel ID. |
Mode | DSI long packet data type. This parameter can be any value of
|
NbParams | Number of parameters. |
Param1 | DSC command or first generic parameter. This parameter can be any value of
|
ParametersTable | Pointer to parameter values table. |
HAL | status |
Definition at line 1661 of file stm32f4xx_hal_dsi.c.
HAL_StatusTypeDef HAL_DSI_PatternGeneratorStart | ( | DSI_HandleTypeDef * | hdsi, |
uint32_t | Mode, | ||
uint32_t | Orientation | ||
) |
Start test pattern generation.
hdsi | pointer to a DSI_HandleTypeDef structure that contains the configuration information for the DSI. |
Mode | Pattern generator mode This parameter can be one of the following values: 0 : Color bars (horizontal or vertical) 1 : BER pattern (vertical only) |
Orientation | Pattern generator orientation This parameter can be one of the following values: 0 : Vertical color bars 1 : Horizontal color bars |
HAL | status |
Definition at line 2549 of file stm32f4xx_hal_dsi.c.
HAL_StatusTypeDef HAL_DSI_PatternGeneratorStop | ( | DSI_HandleTypeDef * | hdsi | ) |
Stop test pattern generation.
hdsi | pointer to a DSI_HandleTypeDef structure that contains the configuration information for the DSI. |
HAL | status |
Definition at line 2573 of file stm32f4xx_hal_dsi.c.
HAL_StatusTypeDef HAL_DSI_Read | ( | DSI_HandleTypeDef * | hdsi, |
uint32_t | ChannelNbr, | ||
uint8_t * | Array, | ||
uint32_t | Size, | ||
uint32_t | Mode, | ||
uint32_t | DCSCmd, | ||
uint8_t * | ParametersTable | ||
) |
Read command (DCS or generic)
hdsi | pointer to a DSI_HandleTypeDef structure that contains the configuration information for the DSI. |
ChannelNbr | Virtual channel ID |
Array | pointer to a buffer to store the payload of a read back operation. |
Size | Data size to be read (in byte). |
Mode | DSI read packet data type. This parameter can be any value of
|
DCSCmd | DCS get/read command. |
ParametersTable | Pointer to parameter values table. |
HAL | status |
Definition at line 1750 of file stm32f4xx_hal_dsi.c.
HAL_StatusTypeDef HAL_DSI_Refresh | ( | DSI_HandleTypeDef * | hdsi | ) |
Refresh the display in command mode.
hdsi | pointer to a DSI_HandleTypeDef structure that contains the configuration information for the DSI. |
HAL | status |
Definition at line 1547 of file stm32f4xx_hal_dsi.c.
HAL_StatusTypeDef HAL_DSI_SetContentionDetectionOff | ( | DSI_HandleTypeDef * | hdsi, |
FunctionalState | State | ||
) |
Switch off the contention detection on data lanes.
hdsi | pointer to a DSI_HandleTypeDef structure that contains the configuration information for the DSI. |
State | ENABLE or DISABLE |
HAL | status |
Definition at line 3093 of file stm32f4xx_hal_dsi.c.
HAL_StatusTypeDef HAL_DSI_SetGenericVCID | ( | DSI_HandleTypeDef * | hdsi, |
uint32_t | VirtualChannelID | ||
) |
Configure the Generic interface read-back Virtual Channel ID.
hdsi | pointer to a DSI_HandleTypeDef structure that contains the configuration information for the DSI. |
VirtualChannelID | Virtual channel ID |
HAL | status |
Definition at line 1068 of file stm32f4xx_hal_dsi.c.
HAL_StatusTypeDef HAL_DSI_SetLanePinsConfiguration | ( | DSI_HandleTypeDef * | hdsi, |
uint32_t | CustomLane, | ||
uint32_t | Lane, | ||
FunctionalState | State | ||
) |
Custom lane pins configuration.
hdsi | pointer to a DSI_HandleTypeDef structure that contains the configuration information for the DSI. |
CustomLane | Function to be applied on selected lane. This parameter can be any value of
|
Lane | select between clock or data lane 0 or data lane 1. This parameter can be any value of
|
State | ENABLE or DISABLE |
HAL | status |
Definition at line 2742 of file stm32f4xx_hal_dsi.c.
HAL_StatusTypeDef HAL_DSI_SetLowPowerRXFilter | ( | DSI_HandleTypeDef * | hdsi, |
uint32_t | Frequency | ||
) |
Low-Power Reception Filter Tuning.
hdsi | pointer to a DSI_HandleTypeDef structure that contains the configuration information for the DSI. |
Frequency | cutoff frequency of low-pass filter at the input of LPRX |
HAL | status |
Definition at line 2690 of file stm32f4xx_hal_dsi.c.
HAL_StatusTypeDef HAL_DSI_SetPHYTimings | ( | DSI_HandleTypeDef * | hdsi, |
uint32_t | Timing, | ||
FunctionalState | State, | ||
uint32_t | Value | ||
) |
Set custom timing for the PHY.
hdsi | pointer to a DSI_HandleTypeDef structure that contains the configuration information for the DSI. |
Timing | PHY timing to be adjusted. This parameter can be any value of
|
State | ENABLE or DISABLE |
Value | Custom value of the timing |
HAL | status |
Definition at line 2829 of file stm32f4xx_hal_dsi.c.
HAL_StatusTypeDef HAL_DSI_SetPullDown | ( | DSI_HandleTypeDef * | hdsi, |
FunctionalState | State | ||
) |
Enable a pull-down on the lanes to prevent from floating states when unused.
hdsi | pointer to a DSI_HandleTypeDef structure that contains the configuration information for the DSI. |
State | ENABLE or DISABLE |
HAL | status |
Definition at line 3068 of file stm32f4xx_hal_dsi.c.
HAL_StatusTypeDef HAL_DSI_SetSDD | ( | DSI_HandleTypeDef * | hdsi, |
FunctionalState | State | ||
) |
Activate an additional current path on all lanes to meet the SDDTx parameter defined in the MIPI D-PHY specification.
hdsi | pointer to a DSI_HandleTypeDef structure that contains the configuration information for the DSI. |
State | ENABLE or DISABLE |
HAL | status |
Definition at line 2713 of file stm32f4xx_hal_dsi.c.
HAL_StatusTypeDef HAL_DSI_SetSlewRateAndDelayTuning | ( | DSI_HandleTypeDef * | hdsi, |
uint32_t | CommDelay, | ||
uint32_t | Lane, | ||
uint32_t | Value | ||
) |
Set Slew-Rate And Delay Tuning.
hdsi | pointer to a DSI_HandleTypeDef structure that contains the configuration information for the DSI. |
CommDelay | Communication delay to be adjusted. This parameter can be any value of
|
Lane | select between clock or data lanes. This parameter can be any value of
|
Value | Custom value of the slew-rate or delay |
HAL | status |
Definition at line 2598 of file stm32f4xx_hal_dsi.c.
HAL_StatusTypeDef HAL_DSI_ShortWrite | ( | DSI_HandleTypeDef * | hdsi, |
uint32_t | ChannelID, | ||
uint32_t | Mode, | ||
uint32_t | Param1, | ||
uint32_t | Param2 | ||
) |
write short DCS or short Generic command
hdsi | pointer to a DSI_HandleTypeDef structure that contains the configuration information for the DSI. |
ChannelID | Virtual channel ID. |
Mode | DSI short packet data type. This parameter can be any value of
|
Param1 | DSC command or first generic parameter. This parameter can be any value of
|
Param2 | DSC parameter or second generic parameter. |
HAL | status |
Definition at line 1626 of file stm32f4xx_hal_dsi.c.
HAL_StatusTypeDef HAL_DSI_Shutdown | ( | DSI_HandleTypeDef * | hdsi, |
uint32_t | Shutdown | ||
) |
Control the display shutdown in Video mode.
hdsi | pointer to a DSI_HandleTypeDef structure that contains the configuration information for the DSI. |
Shutdown | Shut-down (Display-ON or Display-OFF). This parameter can be any value of
|
HAL | status |
Definition at line 1595 of file stm32f4xx_hal_dsi.c.
HAL_StatusTypeDef HAL_DSI_Start | ( | DSI_HandleTypeDef * | hdsi | ) |
Start the DSI module.
hdsi | pointer to a DSI_HandleTypeDef structure that contains the configuration information for the DSI. |
HAL | status |
Definition at line 1501 of file stm32f4xx_hal_dsi.c.
HAL_StatusTypeDef HAL_DSI_Stop | ( | DSI_HandleTypeDef * | hdsi | ) |
Stop the DSI module.
hdsi | pointer to a DSI_HandleTypeDef structure that contains the configuration information for the DSI. |
HAL | status |
Definition at line 1524 of file stm32f4xx_hal_dsi.c.