AnsweredAssumed Answered

Processor Expert - How to use driver in my application?

Question asked by lmg on Jul 3, 2013
Latest reply on Jul 3, 2013 by lmg

CW10.4

MQX 4.0.1

TWRK60D100

 

I see that PE allows me to drag and drop code for particular methods into my application.

 

But the code that's generated is just a template. Where do I find the specific values to fill in?

 

Example:

 

I want to turn on a GPIO output pin.

 

In the Component Inspector, I've named the field "LED2".

 

When I drag "SetFieldValue" into my source file, I get:

 

       GPIO1_SetFieldValue();

 

The pop-up box for SetFieldValue says the syntax is:

 

        void GPIO1_SetFieldValue(LDD_TDeviceData *DeviceDataPtr, LDD_GPIO_TBitField Field, GPIO1_TFieldValue Value);

 

I'm clueless on the four arguments I'm supposed to fill in. I assume they're automagically generated somewhere???

 

 

Also, I assume this I/O point is initialized somewhere. Do I have to add that code, or is it automagically included in the build?

 

Thanks!

 

~LMG

Outcomes