{"id":4533,"date":"2019-06-16T20:29:37","date_gmt":"2019-06-16T18:29:37","guid":{"rendered":"https:\/\/demdlx704as001.ad.harman.com\/?p=4533"},"modified":"2021-12-15T21:39:08","modified_gmt":"2021-12-15T20:39:08","slug":"file-and-flash-io-abstraction","status":"publish","type":"post","link":"https:\/\/audioworx.transfunnel.co\/old\/?p=4533","title":{"rendered":"File and Flash IO Abstraction"},"content":{"rendered":"<p class=\"text\">The \u00a0xAF library contains base classes that can be used to implement file\/flash I\/O on any platform. These classes are:<\/p>\n<ul>\n<li class=\"text\"><strong>IOBase<\/strong> \u2013 This is the base class. Any other I\/O class inherits from this class.<\/li>\n<li class=\"text\"><strong>FlashInterface<\/strong> \u2013 This class inherits the <em>IOBase<\/em> It is the base class that other classes will inherit from to implement <u>flash<\/u> access from a given platform.<\/li>\n<li class=\"text\"><strong>FileInterface<\/strong> \u2013 This class inherits the <em>IOBase<\/em> It is the base class that other classes will inherit from to implement <u>file<\/u> access from a given platform.<\/li>\n<\/ul>\n<p class=\"text\">You can find the header files for these classes in the xAF repo at <em>public\/include\/<\/em> folder. Examples are provided for IVP and Summit.<\/p>\n<h4 class=\"text\">IVP<\/h4>\n<p class=\"text\">On IVP, the Win32 I\/O files are in:<\/p>\n<ul>\n<li class=\"text\">FlashInterfaceWin32<\/li>\n<li class=\"text\">FileInterfaceWin32<\/li>\n<\/ul>\n<p class=\"text\">You can find the source files in the xAF repo at: <em>private\/utils\/xAFVirtualAmp\/interface.<\/em><\/p>\n<h4 class=\"text\">Summit<\/h4>\n<p class=\"text\">On Summit, you can find a reference implementation of these files on the Summit repo, on the xaf_examples branch, under <em>customer\/reference\/xaf_reference_app\/interface<\/em>:<\/p>\n<ul>\n<li class=\"text\">FileInterfaceSummit<\/li>\n<li class=\"text\">FlashInterfaceSummit Note: This would be implemented to open a file right now instead of accessing<\/li>\n<\/ul>\n<p class=\"text\">flash memory.<\/p>\n<p class=\"text\">For example, this is how to use the FlashInterfaceSummit to read data:<\/p>\n<p class=\"text\">FlashInterfaceSummit* flashTest = (FlashInterfaceSummit*)summitFlashInterface.getInstanceOf(); \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 flashTest-&gt;open(0, IOBase::access_read);<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The \u00a0xAF library contains base classes that can be used to implement file\/flash I\/O on any platform. These classes are: IOBase \u2013 This is the base class. Any other I\/O class inherits from this class. FlashInterface \u2013 This class inherits the IOBase It is the base class that other classes will inherit from to implement [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ocean_post_layout":"","ocean_both_sidebars_style":"","ocean_both_sidebars_content_width":0,"ocean_both_sidebars_sidebars_width":0,"ocean_sidebar":"","ocean_second_sidebar":"","ocean_disable_margins":"enable","ocean_add_body_class":"","ocean_shortcode_before_top_bar":"","ocean_shortcode_after_top_bar":"","ocean_shortcode_before_header":"","ocean_shortcode_after_header":"","ocean_has_shortcode":"","ocean_shortcode_after_title":"","ocean_shortcode_before_footer_widgets":"","ocean_shortcode_after_footer_widgets":"","ocean_shortcode_before_footer_bottom":"","ocean_shortcode_after_footer_bottom":"","ocean_display_top_bar":"default","ocean_display_header":"default","ocean_header_style":"","ocean_center_header_left_menu":"","ocean_custom_header_template":"","ocean_custom_logo":0,"ocean_custom_retina_logo":0,"ocean_custom_logo_max_width":0,"ocean_custom_logo_tablet_max_width":0,"ocean_custom_logo_mobile_max_width":0,"ocean_custom_logo_max_height":0,"ocean_custom_logo_tablet_max_height":0,"ocean_custom_logo_mobile_max_height":0,"ocean_header_custom_menu":"","ocean_menu_typo_font_family":"","ocean_menu_typo_font_subset":"","ocean_menu_typo_font_size":0,"ocean_menu_typo_font_size_tablet":0,"ocean_menu_typo_font_size_mobile":0,"ocean_menu_typo_font_size_unit":"px","ocean_menu_typo_font_weight":"","ocean_menu_typo_font_weight_tablet":"","ocean_menu_typo_font_weight_mobile":"","ocean_menu_typo_transform":"","ocean_menu_typo_transform_tablet":"","ocean_menu_typo_transform_mobile":"","ocean_menu_typo_line_height":0,"ocean_menu_typo_line_height_tablet":0,"ocean_menu_typo_line_height_mobile":0,"ocean_menu_typo_line_height_unit":"","ocean_menu_typo_spacing":0,"ocean_menu_typo_spacing_tablet":0,"ocean_menu_typo_spacing_mobile":0,"ocean_menu_typo_spacing_unit":"","ocean_menu_link_color":"","ocean_menu_link_color_hover":"","ocean_menu_link_color_active":"","ocean_menu_link_background":"","ocean_menu_link_hover_background":"","ocean_menu_link_active_background":"","ocean_menu_social_links_bg":"","ocean_menu_social_hover_links_bg":"","ocean_menu_social_links_color":"","ocean_menu_social_hover_links_color":"","ocean_disable_title":"default","ocean_disable_heading":"default","ocean_post_title":"","ocean_post_subheading":"","ocean_post_title_style":"","ocean_post_title_background_color":"","ocean_post_title_background":0,"ocean_post_title_bg_image_position":"","ocean_post_title_bg_image_attachment":"","ocean_post_title_bg_image_repeat":"","ocean_post_title_bg_image_size":"","ocean_post_title_height":0,"ocean_post_title_bg_overlay":0.5,"ocean_post_title_bg_overlay_color":"","ocean_disable_breadcrumbs":"default","ocean_breadcrumbs_color":"","ocean_breadcrumbs_separator_color":"","ocean_breadcrumbs_links_color":"","ocean_breadcrumbs_links_hover_color":"","ocean_display_footer_widgets":"default","ocean_display_footer_bottom":"default","ocean_custom_footer_template":"","footnotes":"","ocean_post_oembed":"","ocean_post_self_hosted_media":"","ocean_post_video_embed":"","ocean_link_format":"","ocean_link_format_target":"self","ocean_quote_format":"","ocean_quote_format_link":"post","ocean_gallery_link_images":"off","ocean_gallery_id":[]},"categories":[54,47,10],"tags":[],"coauthors":[165],"_links":{"self":[{"href":"https:\/\/audioworx.transfunnel.co\/old\/index.php?rest_route=\/wp\/v2\/posts\/4533"}],"collection":[{"href":"https:\/\/audioworx.transfunnel.co\/old\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/audioworx.transfunnel.co\/old\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/audioworx.transfunnel.co\/old\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/audioworx.transfunnel.co\/old\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4533"}],"version-history":[{"count":2,"href":"https:\/\/audioworx.transfunnel.co\/old\/index.php?rest_route=\/wp\/v2\/posts\/4533\/revisions"}],"predecessor-version":[{"id":14371,"href":"https:\/\/audioworx.transfunnel.co\/old\/index.php?rest_route=\/wp\/v2\/posts\/4533\/revisions\/14371"}],"wp:attachment":[{"href":"https:\/\/audioworx.transfunnel.co\/old\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4533"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/audioworx.transfunnel.co\/old\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4533"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/audioworx.transfunnel.co\/old\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4533"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/audioworx.transfunnel.co\/old\/index.php?rest_route=%2Fwp%2Fv2%2Fcoauthors&post=4533"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}