{"id":1409,"date":"2017-08-08T15:49:54","date_gmt":"2017-08-08T06:49:54","guid":{"rendered":"http:\/\/rageworx.info\/?p=1409"},"modified":"2017-08-08T15:49:54","modified_gmt":"2017-08-08T06:49:54","slug":"sset-to-c-or-h-converting-open-source","status":"publish","type":"post","link":"https:\/\/rageworx.info\/?p=1409","title":{"rendered":"sset to C or H converting open source."},"content":{"rendered":"<p><a href=\"http:\/\/rageworx.info\/wp-content\/uploads\/2017\/08\/sset2c_01.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-1410\" src=\"http:\/\/rageworx.info\/wp-content\/uploads\/2017\/08\/sset2c_01-500x180.jpg\" alt=\"\" width=\"500\" height=\"180\" srcset=\"https:\/\/rageworx.info\/wp-content\/uploads\/2017\/08\/sset2c_01-500x180.jpg 500w, https:\/\/rageworx.info\/wp-content\/uploads\/2017\/08\/sset2c_01.jpg 657w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/a><\/p>\n<p>There&#8217;s nothing to find information about sset ( I was misunderstood it may s-record ), so I made a simple tool for supporting multi-platform if have any GCC with STL.<\/p>\n<p>You can clone or download source code ( it is MIT license ) and build in your system with just typing &#8220;make&#8221; then, enjoy it.<\/p>\n<p>It was tested on Windows MinGW-W64 and Mint Linux 18.2 GCC 5.2 with Mac OS X llvm-gcc. You can change {anyname of file}.sset to C or H file with options here:<\/p>\n<pre class=\"lang:c++ highlight:0 decode:true \" title=\"sset2c parameters:\">sset2c, sset to c\/h converter, rageworx@gmail.com, version 0.1.0.0\r\n\r\n usages :\r\n\tsset2c [source file] (options) (output file)\r\n\r\n options :\r\n\t-h(-H) : Convert sset to C language header type\r\n\t         Default is C language (.c)\r\n\t-w(-W) : Convert in 2 bytes (word) type instead single byte.\r\n\t         Default is using single byte.\r\n\t-s(-S)=[symbol name] : Using symbol name\r\n\t                       If it ignored, randomly generates.\r\n\t-t(-T)=[structure name] : Using structure name\r\n\t                          Default is a comment : \/*struct type here*\/\r\n\r\n<\/pre>\n<p>For example, let converting preview.sset file to cam_previewmode.c,<\/p>\n<p><span class=\"lang:c++ highlight:0 decode:true  crayon-inline \">sset2c preview.sset -s=cam_preview_1080p -t=msm_camera_i2c_reg_array cam_previewmode.c<\/span><\/p>\n<p>You can decide symbol name and structure name ( you may know what structure name to be written before understanding platform driver structures ) by making a converted file.<\/p>\n<p>And result is like this,<\/p>\n<p><a href=\"http:\/\/rageworx.info\/wp-content\/uploads\/2017\/08\/sset2c_02.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-1411\" src=\"http:\/\/rageworx.info\/wp-content\/uploads\/2017\/08\/sset2c_02-500x103.jpg\" alt=\"\" width=\"500\" height=\"103\" srcset=\"https:\/\/rageworx.info\/wp-content\/uploads\/2017\/08\/sset2c_02-500x103.jpg 500w, https:\/\/rageworx.info\/wp-content\/uploads\/2017\/08\/sset2c_02.jpg 653w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/a><\/p>\n<p>You can simply changes many register setting arrays at once with my open source code here:<\/p>\n<ul>\n<li><a href=\"https:\/\/github.com\/rageworx\/sset2c\" target=\"_blank\" rel=\"noopener\">https:\/\/github.com\/rageworx\/sset2c<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>There&#8217;s nothing to find information about sset ( I was misunderstood it may s-record ), so I made a simple tool for supporting multi-platform if have any GCC with STL. You can clone or download source code ( it is MIT license ) and build in your system with just&#8230; <a href=\"https:\/\/rageworx.info\/?p=1409\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,3],"tags":[473,531,532],"class_list":["post-1409","post","type-post","status-publish","format-standard","hentry","category-development","category-raphs","tag-open-source","tag-sset","tag-sset2c"],"_links":{"self":[{"href":"https:\/\/rageworx.info\/index.php?rest_route=\/wp\/v2\/posts\/1409","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rageworx.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rageworx.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rageworx.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rageworx.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1409"}],"version-history":[{"count":0,"href":"https:\/\/rageworx.info\/index.php?rest_route=\/wp\/v2\/posts\/1409\/revisions"}],"wp:attachment":[{"href":"https:\/\/rageworx.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1409"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rageworx.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1409"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rageworx.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1409"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}