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 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.
| subaddress | Register or memory address within the touchpad device. |
| data | Pointer to buffer where read data will be stored. |
| length | Number of bytes to read. |
| intf_ptr | Pointer to interface-specific context or handle. |
| 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.
| subaddress | Register or memory address within the touchpad device. |
| data | Pointer to buffer containing data to be written. |
| length | Number of bytes to write. |
| intf_ptr | Pointer to interface-specific context or handle. |