Operating systems, development tools, and professional services
for connected embedded systems
for connected embedded systems
![]() |
![]() |
![]() |
![]() |
PtSetValue()
Set the value of a resource using mod_f
Synopsis:
int PtSetValue( PtWidget_t *widget,
PtResourceRec_t const *mod,
PtArg_t const *args );
Arguments:
- widget
- A pointer to the widget whose resource is being modified.
- mode
- A resource record that describes the type of resource being modified.
- arg
- A pointer to a PtArg_t structure (see the Photon Library Reference) that indicates which resource to modify, as well as the value to assign to it.
Description:
This function sets the value of a particular resource using the information provided in mod, including the mod_f member.
Consider calling PtSuperClassSetResources() for a cleaner solution. To set structure members without any further action, call PtSetStruct().
Returns:
- 0
- Nothing has changed.
- 1
- The value has changed.
- 2
- The value and length have changed.
Classification:
Photon
| Safety: | |
|---|---|
| Interrupt handler | No |
| Signal handler | No |
| Thread | No |
See also:
PtSetStruct(), PtSuperClassSetResources()
PtArg_t in the Photon Library Reference
![]() |
![]() |
![]() |
![]() |

![[Previous]](../prev.gif)
![[Contents]](../contents.gif)
![[Index]](../keyword_index.gif)
![[Next]](../next.gif)