matlab - creating a bus header file from a bus object specified in the workspace or from a bus selector -
i have bus object has many elements inside , in turn bus objects again. can tell me there way generate bus header files typedef struct busobject instead of doing manually using script? there direct function or way this?
so example have bus object elements d,e again bus objects , have 2 bus elements each d_a,d_b,e_a,e_b. there function or simple way process bus object output as:
typedef struct { uint8 d_a; uint8 d_b; }d; typedef struct { uint8 e_a; uint8 e_b; }e; typedef struct { d d; e e; }a;
which bus header.
you need set bus datascope exported. 1 way go workspace , double click defined bus. open bus editor gui. when click on bus name there a menu different options: name, data scope, header file, alignment.
use drop down menu data scope select exported. code generator create header file. can specify filename of header file typing foo.h in header file field. if leave blank matlab create header file using bus name.
Comments
Post a Comment