mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 09:18:00 +08:00
driver/touchscreen: Add support for write operations
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
This commit is contained in:
@@ -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 written;a negated errno value on failure.
|
||||
*
|
||||
**************************************************************************/
|
||||
|
||||
CODE ssize_t (*write)(FAR struct touch_lowerhalf_s *lower,
|
||||
FAR const char *buffer, size_t buflen);
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
Reference in New Issue
Block a user