how to use SetFieldValue and GetFieldValue functions?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

how to use SetFieldValue and GetFieldValue functions?

1,067 Views
nekane
Contributor II

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

5 Replies

725 Views
vfilip
NXP Employee
NXP Employee

Hello,

could you please specify which component do you use?

best regards

Vojtech Filip

Processor Expert Support Team


0 Kudos

725 Views
nekane
Contributor II

GPIO_LDD

0 Kudos

725 Views
vfilip
NXP Employee
NXP Employee

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


725 Views
alissonporto
Contributor III

How can I see what I should put for 'MyGPIO1Ptr' in my GetFieldBits function?

0 Kudos

725 Views
nekane
Contributor II

Hello,

OK. Your info has been very hepfull. I will try to do these functions.

Thanks.

Regards.

0 Kudos