Hi everybody. I have to do a project with KL25Z microcontroller and I don`t know how to use SetFieldValue and GetFieldValue functions. It would be very helpfull, thanks
could you please specify which component do you use?
Processor Expert Support Team
generally the description of a method incl. its parameter should be available in the hint of a method or in the help (please find the help of SetFieldValue and GetFieldValue in the attachment). I would also recommend to check "Typical Usage" page in the help of the component (Right click on the component and select "Help on Component" command).
Anyway. SetBitFieldValue/GetBitFieldValue sets/gets value on pin(s) selected in corresponding Bit field:
GPIO1_SetFieldBits(MyGPIO1Ptr, myField, 0x3u);
retVal = GPIO1_GetFieldBits(MyGPIO1Ptr, myField);
We will try to improve the documentation for next release.
OK. Your info has been very hepfull. I will try to do these functions.
How can I see what I should put for 'MyGPIO1Ptr' in my GetFieldBits function?
Retrieving data ...