Jump to content

Recommended Posts

Posted

Hi there,

i want to expand my app by presets stored on a bankstick and have some elemental questions again :)

1.) at ucapps.de->bankstick, it says, writing to a bankstick takes ~10ms, for either, bytes or pages. for reads it just says ~100us. I guess this is also for both, bytes and pages?

2.) presets will take up 128bytes, so i want to use a union for data access and bankstick transfers. i just havent worked much with those and im a bit uncertain, if the following is ok, esp. with regard to heavily mixed var-types:

typedef union {
  struct {
    unsigned char BStick_page1[64];
    unsigned char BStick_page2[64];
  }
  struct {
    unsigned flag1:1;
    unsigned flag2:1;
    unsigned mode1:3;
    unsigned mode2:3;
    unsigned char status;
    unsigned char name[12];
    data_t data1[6];  //data_t defined somewhere above
    //....
  } 
}preset_t;
preset_t current_preset;
then i should be able to read presets with
MIOS_BANKSTICK_ReadPage(preset_nr*0x80, current_preset.page1);
MIOS_BANKSTICK_ReadPage(preset_nr*0x80+0x40, current_preset.page2);

same for writing. i hope thats fine so far?

3.) im just curious, what exactly MIOS_MIDI_BeginStream /-EndStream is doing. I haven't used it so far, and im not planning to link another core. but still im interested and the description is not very specific, except, that it's "important" for Midibox Link.

that's it so far :)

Thanks n cheers,

Alex

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...