IoctlPtpPinGetfunc returns the configuration of the specified I/O pin on given PTP device.
(fd int, index uint)
| 108 | |
| 109 | // IoctlPtpPinGetfunc returns the configuration of the specified I/O pin on given PTP device. |
| 110 | func IoctlPtpPinGetfunc(fd int, index uint) (*PtpPinDesc, error) { |
| 111 | value := PtpPinDesc{Index: uint32(index)} |
| 112 | err := ioctlPtr(fd, PTP_PIN_GETFUNC2, unsafe.Pointer(&value)) |
| 113 | return &value, err |
| 114 | } |
| 115 | |
| 116 | // IoctlPtpPinSetfunc updates configuration of the specified PTP I/O pin. |
| 117 | func IoctlPtpPinSetfunc(fd int, pd *PtpPinDesc) error { |
nothing calls this directly
no test coverage detected
searching dependent graphs…