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
Hello,
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.
best regards
Vojtech Filip
Processor Expert Support Team
How can I see what I should put for 'MyGPIO1Ptr' in my GetFieldBits function?