|
Nexus Embedded Platform 1.0.0
Statically assembled reusable embedded mechanisms
|
Fixed GPIO authorization masks and bounded port operations. More...
#include "nexus/core/status.h"Go to the source code of this file.
Data Structures | |
| struct | nx_gpio_ops_t |
| Shared read-only methods using one provider state. More... | |
| struct | nx_gpio_port |
| Immutable interface pointing to caller-owned state. More... | |
Typedefs | |
| typedef struct nx_gpio_port | nx_gpio_port_t |
Functions | |
| nx_result_t | nx_gpio_port_write (const nx_gpio_port_t *port, uint32_t set_mask, uint32_t reset_mask) |
| Atomically set/reset one port's authorized output mask. | |
| nx_result_t | nx_gpio_port_read (const nx_gpio_port_t *port, uint32_t *value) |
| Read one input snapshot restricted to the binding mask. | |
| nx_result_t | nx_gpio_port_toggle (const nx_gpio_port_t *port, uint32_t mask) |
| Toggle authorized outputs under the single-writer contract. | |
Fixed GPIO authorization masks and bounded port operations.
Definition in file gpio.h.
| typedef struct nx_gpio_port nx_gpio_port_t |
| nx_result_t nx_gpio_port_read | ( | const nx_gpio_port_t * | port, |
| uint32_t * | value ) |
Read one input snapshot restricted to the binding mask.
| [in] | port | Fixed initialized binding. |
| [out] | value | Masked input snapshot; unchanged on error. |
| nx_result_t nx_gpio_port_toggle | ( | const nx_gpio_port_t * | port, |
| uint32_t | mask ) |
Toggle authorized outputs under the single-writer contract.
| [in] | port | Fixed output binding with a serialized writer. |
| [in] | mask | Authorized subset to toggle. |
| nx_result_t nx_gpio_port_write | ( | const nx_gpio_port_t * | port, |
| uint32_t | set_mask, | ||
| uint32_t | reset_mask ) |
Atomically set/reset one port's authorized output mask.
| [in] | port | Fixed initialized binding, no registry or OS lock. |
| [in] | set_mask | Authorized bits to set. |
| [in] | reset_mask | Authorized bits to reset; disjoint from set_mask. |