Page 1 of 1

Using the PAL functions

Posted: Sun Jul 03, 2016 8:17 pm
by e_l_tang
Hi everyone,

What are the types and the sizes of the parameters accepted by the PAL functions? My code needs to repeatedly perform the same actions on different pads, and I am looking for a way to avoid needing to hard-code every action. My goal would be to store that information in arrays of structures. If it's helpful, here is the source file I am working on.

Thanks,
Eric

Re: Using the PAL functions

Posted: Sun Jul 03, 2016 8:41 pm
by Giovanni
Hi,

The PAL driver allows to operate groups of pads (on the same port), look for "bus" functions. Groups are declared as structures.

Giovanni

Re: Using the PAL functions

Posted: Sun Jul 03, 2016 8:55 pm
by e_l_tang
Hi Giovanni,

The pads won't always be part of the same port and they won't always be manipulated simultaneously. I'm looking for a way to perform random access on them.

Thanks,
Eric

Re: Using the PAL functions

Posted: Sun Jul 03, 2016 9:48 pm
by Giovanni
Then I have not understood your idea, you can use pal functions in order to manipulate them individually or in groups. You can use the "line" functions if you need for pads to have a type.

Giovanni

Re: Using the PAL functions

Posted: Sun Jul 03, 2016 9:53 pm
by e_l_tang
Hi Giovanni,

No, I think you have understood. Those functions are probably what I am looking for. I will try them and report back.

Thanks,
Eric