Re: Large buffers
Phil D <[email protected]>
| Newsgroups | gmane.comp.hardware.rabbit-semiconductor |
|---|---|
| Message-ID | <CAL8BBoN=f_=JbPNTS4Ohq8qZ67-+HoWC7rKJ+jOWuoahJZBuOw@mail.gmail.com> |
the XMEM functions allow for some large arrays to be stored biggest i have
is 150 x 100 but you could make something bigger.
im using my xmem to store some large data structures heres an example of
initialisation
Zone_point is a long holding starting address.
Zone_point=xalloc(sizeof(Zone_XMEM)*ZONE_MAX);//Allocate zones in xmem
for(x_i=0;x_i<(sizeof(Zone_XMEM)*ZONE_MAX);x_i+=sizeof(Zone_XMEM)){
root2xmem(Zone_point+x_i, &Zone_XMEM, sizeof(Zone_XMEM) );
}
getting somthing out eg
xmem2root(&ZoneD, Zone_point+(n*sizeof(ZoneD)), sizeof(ZoneD));
Phil
On 15 May 2013 21:48, Jesus Manuel Conejo Sarabia <
[email protected]> wrote:
> **
>
>
> Hi!,****
>
> I’m working in a project with a Rabbit6000 and a little
> cam. I want to store temporaly frames of the cam. I’m testing on using the
> RAM (variables, large arrays) to store the frames but I have not enough
> space. I don’t want to use RCM modules with serial eeprom or sd cards
> because as you know the eeproms have limits on the number of writings so
> the idea is to use RAM. Have you experience using large buffers on RAM
> (variables). Have you touched on BIOSLIB to get this way?, which is the
> limit? ****
>
> ** **
>
> Thanks****
>
> Jesus****
>
> ** **
>
> ** **
>
>
>