driver/touchscreen: Add support for write operations

Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
This commit is contained in:
yinshengkai
2021-11-18 19:44:03 +08:00
committed by Xiang Xiao
parent ec54c4e30d
commit 676b735c4a
2 changed files with 49 additions and 0 deletions
+19
View File
@@ -175,6 +175,25 @@ struct touch_lowerhalf_s
CODE int (*control)(FAR struct touch_lowerhalf_s *lower,
int cmd, unsigned long arg);
/**************************************************************************
* Name: write
*
* Description:
* Users can use this interface to implement custom write.
*
* Arguments:
* lower - The instance of lower half of touchscreen device.
* buffer - User defined specific buffer.
* buflen - User defined specific buffer size.
*
* Return Value:
* Number of bytes writtena negated errno value on failure.
*
**************************************************************************/
CODE ssize_t (*write)(FAR struct touch_lowerhalf_s *lower,
FAR const char *buffer, size_t buflen);
};
/****************************************************************************