Detecting pad by specified location.

If you have any questions on programming, this is the place to ask them, whether you're a newbie or an experienced programmer. Discussion on programming in general is also welcome. We will help you with programming homework, but we will not do your work for you! Any porting requests must be made in Developmental Ideas.
Post Reply
User avatar
Newbie
Insane DCEmu
Insane DCEmu
Posts: 171
https://www.artistsworkshop.eu/meble-kuchenne-na-wymiar-warszawa-gdzie-zamowic/
Joined: Sat Jul 27, 2013 1:16 pm
Has thanked: 0
Been thanked: 0

Detecting pad by specified location.

Post by Newbie »

I have seen that there is a maple function to get the Nth device of the requested type.

Code: Select all

maple_device_t* maple_enum_type  (int n, uint32 func ) 	
I would like to have the same information but with a specific port, for example port A and not the first found port.
Is it possible ?

Thanks in advance.
User avatar
Indiket
DC Developer
DC Developer
Posts: 99
Joined: Sun Sep 05, 2010 5:44 am
Has thanked: 0
Been thanked: 0

Re: Detecting pad by specified location.

Post by Indiket »

Piece of cake with maple_enum_dev :)

Code: Select all

maple_device_t* maple_enum_dev 	( int p, int u)

Get a raw device info struct for the given device (p = port, u = unit)
User avatar
Newbie
Insane DCEmu
Insane DCEmu
Posts: 171
Joined: Sat Jul 27, 2013 1:16 pm
Has thanked: 0
Been thanked: 0

Re: Detecting pad by specified location.

Post by Newbie »

Thanks a lot !
Post Reply