Mstdlib-1.24.0
Made for iPod/iPhone/iPad IO functions

Typedefs

typedef struct M_io_mfi_enum M_io_mfi_enum_t
 

Functions

M_io_mfi_enum_tM_io_mfi_enum (void)
 
void M_io_mfi_enum_destroy (M_io_mfi_enum_t *mfienum)
 
size_t M_io_mfi_enum_count (const M_io_mfi_enum_t *mfienum)
 
const char * M_io_mfi_enum_name (const M_io_mfi_enum_t *mfienum, size_t idx)
 
const char * M_io_mfi_enum_protocol (const M_io_mfi_enum_t *mfienum, size_t idx)
 
const char * M_io_mfi_enum_serialnum (const M_io_mfi_enum_t *mfienum, size_t idx)
 
const char * M_io_mfi_enum_manufacturer (const M_io_mfi_enum_t *mfienum, size_t idx)
 
const char * M_io_mfi_enum_model_number (const M_io_mfi_enum_t *mfienum, size_t idx)
 
const char * M_io_mfi_enum_firmware_revision (const M_io_mfi_enum_t *mfienum, size_t idx)
 
const char * M_io_mfi_enum_hardware_revision (const M_io_mfi_enum_t *mfienum, size_t idx)
 
M_io_error_t M_io_mfi_create (M_io_t **io_out, const char *protocol, const char *serialnum)
 

Detailed Description

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.

Typedef Documentation

◆ M_io_mfi_enum_t

Function Documentation

◆ M_io_mfi_enum()

M_io_mfi_enum_t * M_io_mfi_enum ( void  )

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()

void M_io_mfi_enum_destroy ( M_io_mfi_enum_t mfienum)

Destroy a mfi enumeration object.

Parameters
[in]mfienummfi enumeration object.

◆ M_io_mfi_enum_count()

size_t M_io_mfi_enum_count ( const M_io_mfi_enum_t mfienum)

Number of mfi objects in the enumeration.

Parameters
[in]mfienummfi 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]mfienummfi enumeration object.
[in]idxIndex 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]mfienummfi enumeration object.
[in]idxIndex 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]mfienummfi enumeration object.
[in]idxIndex 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]mfienummfi enumeration object.
[in]idxIndex 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]mfienummfi enumeration object.
[in]idxIndex 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]mfienummfi enumeration object.
[in]idxIndex 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]mfienummfi enumeration object.
[in]idxIndex 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_outio object for communication.
[in]protocolProtocol to use. Required.
[in]serialnumSerial number of device to use.
Returns
Result.