Made for iPod/iPhone/iPad IO functions
Supported OS:
This is the External Accessory EAAccessory protocol. Devices that are part of the Made for iPhone/iPod/iPad (MFi) program. BLE is not supported by this interface use m_io_mfi for BLE on iOS.
◆ M_io_mfi_enum_t
◆ M_io_mfi_enum()
Create a mfi enumeration object.
Use to determine what mfi devices are connected. On some OS's this may be a list of associated devices not necessarily what's actively connected.
A device can expose multiple protocols.
- Returns
- mfi enumeration object.
◆ M_io_mfi_enum_destroy()
Destroy a mfi enumeration object.
- Parameters
-
[in] | mfienum | mfi enumeration object. |
◆ M_io_mfi_enum_count()
Number of mfi objects in the enumeration.
- Parameters
-
[in] | mfienum | mfi enumeration object. |
- Returns
- Count of mfi devices.
◆ M_io_mfi_enum_name()
const char * M_io_mfi_enum_name |
( |
const M_io_mfi_enum_t * |
mfienum, |
|
|
size_t |
idx |
|
) |
| |
Name of mfi device as reported by the device.
- Parameters
-
[in] | mfienum | mfi enumeration object. |
[in] | idx | Index in mfi enumeration. |
- Returns
- String.
◆ M_io_mfi_enum_protocol()
const char * M_io_mfi_enum_protocol |
( |
const M_io_mfi_enum_t * |
mfienum, |
|
|
size_t |
idx |
|
) |
| |
Protocol exposed by of mfi device.
- Parameters
-
[in] | mfienum | mfi enumeration object. |
[in] | idx | Index in mfi enumeration. |
- Returns
- String.
◆ M_io_mfi_enum_serialnum()
const char * M_io_mfi_enum_serialnum |
( |
const M_io_mfi_enum_t * |
mfienum, |
|
|
size_t |
idx |
|
) |
| |
Serial number.
- Parameters
-
[in] | mfienum | mfi enumeration object. |
[in] | idx | Index in mfi enumeration. |
- Returns
- String
◆ M_io_mfi_enum_manufacturer()
const char * M_io_mfi_enum_manufacturer |
( |
const M_io_mfi_enum_t * |
mfienum, |
|
|
size_t |
idx |
|
) |
| |
Manufacturer.
- Parameters
-
[in] | mfienum | mfi enumeration object. |
[in] | idx | Index in mfi enumeration. |
- Returns
- String
◆ M_io_mfi_enum_model_number()
const char * M_io_mfi_enum_model_number |
( |
const M_io_mfi_enum_t * |
mfienum, |
|
|
size_t |
idx |
|
) |
| |
Model number.
- Parameters
-
[in] | mfienum | mfi enumeration object. |
[in] | idx | Index in mfi enumeration. |
- Returns
- String
◆ M_io_mfi_enum_firmware_revision()
const char * M_io_mfi_enum_firmware_revision |
( |
const M_io_mfi_enum_t * |
mfienum, |
|
|
size_t |
idx |
|
) |
| |
Firmware revision.
- Parameters
-
[in] | mfienum | mfi enumeration object. |
[in] | idx | Index in mfi enumeration. |
- Returns
- String
◆ M_io_mfi_enum_hardware_revision()
const char * M_io_mfi_enum_hardware_revision |
( |
const M_io_mfi_enum_t * |
mfienum, |
|
|
size_t |
idx |
|
) |
| |
Hardware revision.
- Parameters
-
[in] | mfienum | mfi enumeration object. |
[in] | idx | Index in mfi enumeration. |
- Returns
- String
◆ M_io_mfi_create()
M_io_error_t M_io_mfi_create |
( |
M_io_t ** |
io_out, |
|
|
const char * |
protocol, |
|
|
const char * |
serialnum |
|
) |
| |
Create a mfi connection.
- Parameters
-
[out] | io_out | io object for communication. |
[in] | protocol | Protocol to use. Required. |
[in] | serialnum | Serial number of device to use. |
- Returns
- Result.