iOS MFI认证代码及文档.zip
大小:3.15MB
价格:45积分
下载量:2
评分:
5.0
上传者:huaxiu5
更新日期:2025-09-22

iOS MFI认证代码及文档

资源文件列表(大概)

文件名
大小
iAP2 Sample Source R1.zip
144.73KB
iAP2 Sample Source R1/
-
iAP2 Sample Source R1/iAP2Link/
-
iAP2 Sample Source R1/iAP2Link/iAP2FileTransfer.c
50.07KB
iAP2 Sample Source R1/iAP2Link/iAP2FileTransfer.h
18.6KB
iAP2 Sample Source R1/iAP2Link/iAP2Link.c
130.34KB
iAP2 Sample Source R1/iAP2Link/iAP2Link.h
33.36KB
iAP2 Sample Source R1/iAP2Link/iAP2LinkAccessory.c
40.1KB
iAP2 Sample Source R1/iAP2Link/iAP2LinkPrivate.h
10.54KB
iAP2 Sample Source R1/iAP2Link/iAP2LinkRunLoop.c
23.65KB
iAP2 Sample Source R1/iAP2Link/iAP2LinkRunLoop.h
23.98KB
iAP2 Sample Source R1/iAP2Link/iAP2Packet.c
69.63KB
iAP2 Sample Source R1/iAP2Link/iAP2Packet.h
35.25KB
iAP2 Sample Source R1/iAP2LinkConfig.h
3.8KB
iAP2 Sample Source R1/iAP2Utility/
-
iAP2 Sample Source R1/iAP2Utility/iAP2BuffPool.c
9.7KB
iAP2 Sample Source R1/iAP2Utility/iAP2BuffPool.h
6.83KB
iAP2 Sample Source R1/iAP2Utility/iAP2BuffPoolImplementation.h
13.14KB
iAP2 Sample Source R1/iAP2Utility/iAP2Defines.h
3.16KB
iAP2 Sample Source R1/iAP2Utility/iAP2FSM.c
9.62KB
iAP2 Sample Source R1/iAP2Utility/iAP2FSM.h
7.83KB
iAP2 Sample Source R1/iAP2Utility/iAP2ListArray.c
23.66KB
iAP2 Sample Source R1/iAP2Utility/iAP2ListArray.h
15.46KB
iAP2 Sample Source R1/iAP2Utility/iAP2Log.h
17.4KB
iAP2 Sample Source R1/iAP2Utility/iAP2Misc.h
4.93KB
iAP2 Sample Source R1/iAP2Utility/iAP2Time.h
11.58KB
iAP2 Sample Source R1/iAP2UtilityImplementation/
-
iAP2 Sample Source R1/iAP2UtilityImplementation/iAP2BuffPoolImplementation.c
9.44KB
iAP2 Sample Source R1/iAP2UtilityImplementation/iAP2Log.c
27.7KB
iAP2 Sample Source R1/iAP2UtilityImplementation/iAP2Time.c
18.71KB
iAP2 Sample Source R1/iAP2UtilityImplementation/iAP2TimeImplementation.c
650B
iAP2 Sample Source R1/iAP2UtilityImplementation/iAP2TimeImplementation.h
6.58KB
iAP2 Sample Source R1/README.txt
7.95KB
MFIAuthentication/
-
MFIAuthentication/MFIAuthentication.xcodeproj/
-
MFIAuthentication/MFIAuthentication.xcodeproj/project.pbxproj
15.14KB
MFIAuthentication/MFIAuthentication.xcodeproj/project.xcworkspace/
-
MFIAuthentication/MFIAuthentication.xcodeproj/project.xcworkspace/contents.xcworkspacedata
274B
MFIAuthentication/MFIAuthentication.xcodeproj/project.xcworkspace/xcuserdata/
-
MFIAuthentication/MFIAuthentication.xcodeproj/project.xcworkspace/xcuserdata/BluestarLynn.xcuserdatad/
-
MFIAuthentication/MFIAuthentication.xcodeproj/project.xcworkspace/xcuserdata/BluestarLynn.xcuserdatad/UserInterfaceState.xcuserstate
26.2KB
MFIAuthentication/MFIAuthentication.xcodeproj/project.xcworkspace/xcuserdata/EvanXie.xcuserdatad/
-
MFIAuthentication/MFIAuthentication.xcodeproj/project.xcworkspace/xcuserdata/EvanXie.xcuserdatad/UserInterfaceState.xcuserstate
149.61KB
MFIAuthentication/MFIAuthentication.xcodeproj/project.xcworkspace/xcuserdata/Linhua.xcuserdatad/
-
MFIAuthentication/MFIAuthentication.xcodeproj/project.xcworkspace/xcuserdata/Linhua.xcuserdatad/UserInterfaceState.xcuserstate
13.55KB
MFIAuthentication/MFIAuthentication.xcodeproj/xcuserdata/
-
MFIAuthentication/MFIAuthentication.xcodeproj/xcuserdata/BluestarLynn.xcuserdatad/
-
MFIAuthentication/MFIAuthentication.xcodeproj/xcuserdata/BluestarLynn.xcuserdatad/xcschemes/
-
MFIAuthentication/MFIAuthentication.xcodeproj/xcuserdata/BluestarLynn.xcuserdatad/xcschemes/MFIAuthentication.xcscheme
3.37KB
MFIAuthentication/MFIAuthentication.xcodeproj/xcuserdata/BluestarLynn.xcuserdatad/xcschemes/xcschememanagement.plist
489B
MFIAuthentication/MFIAuthentication.xcodeproj/xcuserdata/EvanXie.xcuserdatad/
-
MFIAuthentication/MFIAuthentication.xcodeproj/xcuserdata/EvanXie.xcuserdatad/xcdebugger/
-
MFIAuthentication/MFIAuthentication.xcodeproj/xcuserdata/EvanXie.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
7.66KB
MFIAuthentication/MFIAuthentication.xcodeproj/xcuserdata/EvanXie.xcuserdatad/xcschemes/
-
MFIAuthentication/MFIAuthentication.xcodeproj/xcuserdata/EvanXie.xcuserdatad/xcschemes/iAP2Implemetation.xcscheme
3.33KB
MFIAuthentication/MFIAuthentication.xcodeproj/xcuserdata/EvanXie.xcuserdatad/xcschemes/xcschememanagement.plist
489B
MFIAuthentication/MFIAuthentication.xcodeproj/xcuserdata/Linhua.xcuserdatad/
-
MFIAuthentication/MFIAuthentication.xcodeproj/xcuserdata/Linhua.xcuserdatad/xcdebugger/
-
MFIAuthentication/MFIAuthentication.xcodeproj/xcuserdata/Linhua.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
91B
MFIAuthentication/MFIAuthentication.xcodeproj/xcuserdata/Linhua.xcuserdatad/xcschemes/
-
MFIAuthentication/MFIAuthentication.xcodeproj/xcuserdata/Linhua.xcuserdatad/xcschemes/iAP2Implemetation.xcscheme
3.33KB
MFIAuthentication/MFIAuthentication.xcodeproj/xcuserdata/Linhua.xcuserdatad/xcschemes/xcschememanagement.plist
489B
MFIAuthentication/MFIAuthentication/
-
MFIAuthentication/MFIAuthentication/iAP2Core/
-
MFIAuthentication/MFIAuthentication/iAP2Core/iAP2Defines.h
3.13KB
MFIAuthentication/MFIAuthentication/iAP2Core/iAP2Link/
-
MFIAuthentication/MFIAuthentication/iAP2Core/iAP2Link/iAP2Link.c
23.36KB
MFIAuthentication/MFIAuthentication/iAP2Core/iAP2Link/iAP2Link.h
10.84KB
MFIAuthentication/MFIAuthentication/iAP2Core/iAP2Link/iAP2LinkPrivate.h
4.4KB
MFIAuthentication/MFIAuthentication/iAP2Core/iAP2Link/iAP2Packet.c
47.95KB
MFIAuthentication/MFIAuthentication/iAP2Core/iAP2Link/iAP2Packet.h
30.4KB
MFIAuthentication/MFIAuthentication/IO/
-
MFIAuthentication/MFIAuthentication/IO/IOImplementation.c
1.25KB
MFIAuthentication/MFIAuthentication/IO/IOImplementation.h
858B
MFIAuthentication/MFIAuthentication/main.c
720B
MFIAuthentication/MFIAuthentication/MFIFlow/
-
MFIAuthentication/MFIAuthentication/MFIFlow/MFIAuthentication.c
11.32KB
MFIAuthentication/MFIAuthentication/MFIFlow/MFIAuthentication.h
1.18KB
MFIAuthentication/MFIAuthentication/MFIFlow/MFIGlobal.c
1.21KB
MFIAuthentication/MFIAuthentication/MFIFlow/MFIGlobal.h
1020B
MFIAuthentication/MFIAuthentication/MFIFlow/MFIIdentification.c
11.79KB
MFIAuthentication/MFIAuthentication/MFIFlow/MFIIdentification.h
511B
MFIAuthentication/MFIAuthentication/MFIFlow/MFIWorkFlow.c
2.37KB
MFIAuthentication/MFIAuthentication/MFIFlow/MFIWorkFlow.h
741B
MFIAuthentication/MFIAuthentication/MFIFlow/MFIWorkFlowCommands.c
7.43KB
MFIAuthentication/MFIAuthentication/MFIFlow/MFIWorkFlowCommands.h
656B
MFI授权认证流程.pptx
2.3MB
USB ATS Cable Connection.png
634.24KB

资源内容介绍

最新iOS MFI认证流程文档说明及代码,代码是在iOS端实现的,但流程完整,按照流程可以轻松移入firmware端,希望可以帮到你。 zip文件中包含: - MFI授权认证流程.pptx - USB ATS Cable Connection.png (苹果ATS及USB分析仪连线图) - MFIAuthentication 工程,详细认证流程代码见 MFIFlow文件夹 - 苹果 iAP2 Sample Source R1.zip
/* *File: README.txt *Package: iAP2Link *Abstract: n/a * *Disclaimer: IMPORTANT: This Apple software is supplied to you, by Apple * Inc. ("Apple"), in your capacity as a current, and in good standing, *Licensee in the MFi Licensing Program. Use of this Apple software is *governed by and subject to the terms and conditions of your MFi License, *including, but not limited to, the restrictions specified in the provision *entitled “Public Software”, and is further subject to your agreement to *the following additional terms, and your agreement that the use, *installation, modification or redistribution of this Apple software * constitutes acceptance of these additional terms. If you do not agree with * these additional terms, please do not use, install, modify or redistribute *this Apple software. * *In consideration of your agreement to abide by the following terms, and *subject to these terms, Apple grants you a personal, non-exclusive *license, under Apple's copyrights in this original Apple software (the *"Apple Software"), to use, reproduce, and modify the Apple Software in *source form, and to use, reproduce, modify, and redistribute the Apple *Software, with or without modifications, in binary form. While you may not *redistribute the Apple Software in source form, should you redistribute *the Apple Software in binary form, in its entirety and without *modifications, you must retain this notice and the following text and *disclaimers in all such redistributions of the Apple Software. Neither the *name, trademarks, service marks, or logos of Apple Inc. may be used to *endorse or promote products derived from the Apple Software without *specific prior written permission from Apple. Except as expressly stated *in this notice, no other rights or licenses, express or implied, are *granted by Apple herein, including but not limited to any patent rights *that may be infringed by your derivative works or by other works in which *the Apple Software may be incorporated. * *The Apple Software is provided by Apple on an "AS IS" basis. APPLE MAKES *NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE *IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A *PARTICULAR PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS USE AND OPERATION *ALONE OR IN COMBINATION WITH YOUR PRODUCTS. * *IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL OR *CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF *SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS *INTERRUPTION) ARISING IN ANY WAY OUT OF THE USE, REPRODUCTION, *MODIFICATION AND/OR DISTRIBUTION OF THE APPLE SOFTWARE, HOWEVER CAUSED AND *WHETHER UNDER THEORY OF CONTRACT, TORT (INCLUDING NEGLIGENCE), STRICT *LIABILITY OR OTHERWISE, EVEN IF APPLE HAS BEEN ADVISED OF THE POSSIBILITY *OF SUCH DAMAGE. * *Copyright (C) 2013 Apple Inc. All Rights Reserved. * */Introduction============The iAP2Link package is a reference implementation of the iAP2 link as documented inthe MFi Accessory Interface Specification.The following source files are part of this package: README.txt iAP2LinkConfig_sample.h iAP2Link/ iAP2Link.c iAP2Link.h iAP2LinkPrivate.h iAP2LinkAccessory.c iAP2LinkRunLoop.c iAP2LinkRunLoop.h iAP2Packet.c iAP2Packet.h iAP2FileTransfer.c iAP2FileTransfer.h iAP2Utility/ iAP2BuffPool.c iAP2BuffPool.h iAP2BuffPoolImplementation.h iAP2Defines.h iAP2FSM.c iAP2FSM.h iAP2ListArray.c iAP2ListArray.h iAP2Log.h iAP2Misc.h iAP2Time.h iAP2UtilityImplementation/ iAP2BuffPoolImplementation.c iAP2Log.c iAP2Time.c iAP2TimeImplementation.hiAP2LinkConfig.h----------------This file must be provided by the accessory developer andconfigures the iAP2 link. A typical configuration is providedin iAP2LinkConfig_sample.h.iAP2Link--------This folder contains the core iAP2 link implementation.iAP2Packet.h, iAP2Link.h, and iAP2LinkRunLoop.h describe thehigher-level interfaces.See the comments in those files for information on usage.iAP2FileTransfer.c and iAP2FileTransfer.h provide an exampleimplementation of an iAP2 File Transfer session. See iAP2FileTransfer.hfor information on usage.Reference code contained in this folder is designed to be used asis and modifications are strongly discouraged.The only exception is iAP2Runloop.h. Developers may need to provideimplementations for the following functions (depending on actual usage): iAP2LinkRunLoopInitImplementation iAP2LinkRunLoopCleanupImplementation iAP2LinkRunLoopProtectedCall iAP2LinkRunLoopWait iAP2LinkRunLoopSignaliAP2Utility-----------This folder contains utility function implementations used by iAP2Link.Some files implement abstractions for hardware dependencies such astimers and memory management.The .h files are designed to be used as is and modifications arestrongly discouraged. The .c files may be modified or used as is.iAP2UtilityImplementation-------------------------This folder contains hardware-dependent implementation samples forcertain functions used by iAP2Utility.The files in this folder must be modified to match the target hardware platform.Specifically, iAP2TimeImplementation.h is not a complete timerimplementation and must be modified before use.Usage Notes===========Other than the functions that need to be implemented, the followingfunctions defined in iAP2Packet.h, iAP2Link.h, and iAP2LinkRunLoop.hare used to make use of the iAP2 link protocol reference implementation. iAP2PacketCreateEmptyRecvPacket iAP2PacketParseBuffer iAP2PacketIsComplete iAP2PacketCreateEmptySendPacket iAP2PacketGenerateBuffer iAP2PacketGetBuffer iAP2PacketDelete iAP2LinkRunLoopCreateAccessory iAP2LinkRunLoopRunOnce iAP2LinkRunLoopAttached iAP2LinkRunLoopDetached iAP2LinkRunLoopHandleReadyPacket iAP2LinkRunLoopQueueSendData iAP2LinkQueueSendData iAP2LinkQueueSendDataPacketDevice/Accessory Attach/Detach------------------------------On attach to Device, call: iAP2LinkRunLoopAttachedOn detach from Device, call: iAP2LinkRunLoopDetachedInbound iAP2 traffic--------------------The accessory should perform the following on incoming iAP2 traffic:1) Create iAP2Packet by calling iAP2PacketCreateEmptyRecvPacket2) Parse the incoming data by calling iAP2PacketParseBuffer (pass in data buffer and iAP2Packet structure)3) Check if a full iAP2Packet has been parsed by calling iAP2PacketIsComplete4) If a complete iAP2Packet has not been parsed, go to (2)5) Pass the complete iAP2Packet to the link layer by calling iAP2LinkRunLoopHandleReadyPacketOutbound iAP2 traffic---------------------The accessory should perform the following on outgoing iAP2 traffic:1a) Create a data buffer containing the session data, or1b) Create iAP2Packet by calling iAP2PacketCreateEmptySendPacket and fill the payload with session data.2a) Call iAP2LinkRunLoopQueueSendData or iAP2LinkQueueSendData with a session data buffer, or2b) Call iAP2LinkQueueSendDataPacket with iAP2Packet send packet with a payload containing session data.Once the packet is sent out successfully and has been ACK'd,iAP2PacketDelete will be called by iAP2Link.Notes-----iAP2LinkRunLoopRunOnce should be called on every iteration of theaccessory firmware's main run loop. Most link layer operations arehandled by iAP2Link within iAP2LinkRunLoopRunOnce.Processing of iAP2 session data should be performed as quicklyas possible; any lengthy handling should be spread over multiple runloop cycles or performed in a separate processing thread. Thisespecially applies

用户评论 (0)

发表评论

captcha