Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of USBDevice_STM32F103 by
DFU.h
00001 /* 00002 * Copyright 2016 Devan Lai 00003 * 00004 * Licensed under the Apache License, Version 2.0 (the "License"); 00005 * you may not use this file except in compliance with the License. 00006 * You may obtain a copy of the License at 00007 * 00008 * http://www.apache.org/licenses/LICENSE-2.0 00009 * 00010 * Unless required by applicable law or agreed to in writing, software 00011 * distributed under the License is distributed on an "AS IS" BASIS, 00012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00013 * See the License for the specific language governing permissions and 00014 * limitations under the License. 00015 */ 00016 00017 #ifndef DFU_H 00018 #define DFU_H 00019 00020 enum DFURequest { 00021 DFU_DETACH, 00022 DFU_DNLOAD, 00023 DFU_UPLOAD, 00024 DFU_GETSTATUS, 00025 DFU_CLRSTATUS, 00026 DFU_GETSTATE, 00027 DFU_ABORT, 00028 }; 00029 00030 enum DFUClass { 00031 DFU_CLASS_APP_SPECIFIC = 0xFE, 00032 }; 00033 00034 enum DFUSubClass { 00035 DFU_SUBCLASS_DFU = 0x01, 00036 }; 00037 00038 enum DFUProtocol { 00039 DFU_PROTO_RUNTIME = 0x01, 00040 DFU_PROTO_DFU = 0x02 00041 }; 00042 00043 enum DFUDescriptorType { 00044 DFU_DESCRIPTOR = 0x21, 00045 }; 00046 00047 enum DFUAttributes { 00048 DFU_ATTR_CAN_DOWNLOAD = 0x01, 00049 DFU_ATTR_CAN_UPLOAD = 0x02, 00050 DFU_ATTR_MANIFEST_TOLERANT = 0x04, 00051 DFU_ATTR_WILL_DETACH = 0x08, 00052 }; 00053 00054 enum DFUVersion { 00055 DFU_VERSION_1_00 = 0x0100, 00056 DFUSE_VERSION_1_1A = 0x011A, 00057 }; 00058 00059 #endif
Generated on Thu Jul 14 2022 08:46:29 by
1.7.2
