Norimasa Okamoto
/
lpc1549-USBROM_msc_example
USB Device ROM Stack API example program
Embed:
(wiki syntax)
Show/hide line numbers
rl_usb.h
00001 /* CMSIS-DAP Interface Firmware 00002 * Copyright (c) 2009-2013 ARM Limited 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 #ifndef __RL_USB_H__ 00017 #define __RL_USB_H__ 00018 00019 #ifdef __cplusplus 00020 extern "C" { 00021 #endif 00022 00023 #include <stdint.h> 00024 #include "usb.h" 00025 00026 /***************** Functions *************************************************/ 00027 00028 /* USB Device functions exported from USB Device Core module */ 00029 extern void usbd_init (void); 00030 extern void usbd_connect (uint8_t con); 00031 00032 /* USB Device user functions imported to USB Mass Storage Class module */ 00033 extern void usbd_msc_init (void); 00034 extern void usbd_msc_read_sect (uint32_t block, uint8_t *buf, uint32_t num_of_blocks); 00035 extern void usbd_msc_write_sect (uint32_t block, uint8_t *buf, uint32_t num_of_blocks); 00036 00037 #ifdef __cplusplus 00038 } 00039 #endif 00040 00041 #endif /* __RL_USB_H__ */
Generated on Wed Jul 13 2022 18:15:15 by 1.7.2