CAPSENSE™ Touchpad I2C Host 1.0.0.44
 
Loading...
Searching...
No Matches

General Description

Callback types used to connect the middleware to a host bus.

Typedefs

typedef MTB_TOUCHPAD_RET_TYPE(* mtb_touchpad_read_handle_t) (uint16_t subaddress, uint8_t *data, uint16_t length, void *intf_ptr)
 Function pointer type for touchpad read operation.
 
typedef MTB_TOUCHPAD_RET_TYPE(* mtb_touchpad_write_handle_t) (uint16_t subaddress, uint8_t *data, uint16_t length, void *intf_ptr)
 Function pointer type for touchpad write operation.
 

Typedef Documentation

◆ mtb_touchpad_read_handle_t

typedef MTB_TOUCHPAD_RET_TYPE(* mtb_touchpad_read_handle_t) (uint16_t subaddress, uint8_t *data, uint16_t length, void *intf_ptr)

Function pointer type for touchpad read operation.

This function pointer defines the interface for reading data from the touchpad device. The implementation should handle communication with the hardware (e.g., I2C) and retrieve data from the specified subaddress.

Parameters
subaddressRegister or memory address within the touchpad device.
dataPointer to buffer where read data will be stored.
lengthNumber of bytes to read.
intf_ptrPointer to interface-specific context or handle.
Returns
Status of the read operation of type MTB_TOUCHPAD_RET_TYPE.

◆ mtb_touchpad_write_handle_t

typedef MTB_TOUCHPAD_RET_TYPE(* mtb_touchpad_write_handle_t) (uint16_t subaddress, uint8_t *data, uint16_t length, void *intf_ptr)

Function pointer type for touchpad write operation.

This function pointer defines the interface for writing data to the touchpad device. The implementation should handle communication with the hardware (e.g., I2C) and write data to the specified subaddress.

Parameters
subaddressRegister or memory address within the touchpad device.
dataPointer to buffer containing data to be written.
lengthNumber of bytes to write.
intf_ptrPointer to interface-specific context or handle.
Returns
Status of the write operation of type MTB_TOUCHPAD_RET_TYPE.