cancel
Showing results for 
Search instead for 
Did you mean: 

DSI howto check if command is send without error

MM..1
Chief III
uint8_t lcdRegData[2];
 
extern DSI_HandleTypeDef    hdsi;
 
void Wrt_Reg_3052(uint8_t Par1,uint8_t Par2)
{
	lcdRegData[0]=Par2;
	HAL_DSI_LongWrite(&hdsi, 0, DSI_DCS_LONG_PKT_WRITE, 1, Par1, lcdRegData);
}
 
uint8_t NV3051D_Init(uint32_t ColorCoding, uint32_t orientation)
{
	LCD_RESET_GPIO_Port->BSRR = LCD_RESET_Pin;
	HAL_Delay(1);
	HAL_GPIO_WritePin(LCD_RESET_GPIO_Port, LCD_RESET_Pin, GPIO_PIN_RESET);
	HAL_Delay(1);
	LCD_RESET_GPIO_Port->BSRR = LCD_RESET_Pin;
 
	HAL_Delay(150);
	HAL_DSI_Start(&(hdsi));
	HAL_Delay(15);
 
	Wrt_Reg_3052(0xFF,0x30);

exist way to check last command is sucess??? And ofcourse HAL_OK is returned always, i need other check.

0 REPLIES 0