gpio_custom()
Perform a custom GPIO operation
Synopsis:
#include <hw/gpio_api.h>
int32_t gpio_custom( int32_t gpio_fd,
gpio_header_t hdr,
void *data,
uint32_t len);
Arguments:
- gpio_fd
- The file descriptor of a GPIO device.
- hdr
- The GPIO header identifying a GPIO pin.
- data
- A pointer to an implementation-defined data buffer.
- len
- The length of the data buffer, in bytes.
Description:
The gpio_custom() function performs a custom GPIO operation.
Returns:
0 on success, or -1 if an error occurs (errno is set).
Errors:
Any error value that MsgSendvs() can return, or:
- EINVAL
- The data pointer is NULL.
Page updated:
