how to use SetFieldValue and GetFieldValue functions?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

how to use SetFieldValue and GetFieldValue functions?

3,490件の閲覧回数
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 返答(返信)

3,148件の閲覧回数
vfilip
NXP Employee
NXP Employee

Hello,

could you please specify which component do you use?

best regards

Vojtech Filip

Processor Expert Support Team


0 件の賞賛
返信

3,148件の閲覧回数
nekane
Contributor II

GPIO_LDD

0 件の賞賛
返信

3,145件の閲覧回数
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


3,145件の閲覧回数
alissonporto
Contributor III

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

0 件の賞賛
返信

3,145件の閲覧回数
nekane
Contributor II

Hello,

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

Thanks.

Regards.

0 件の賞賛
返信