|
Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
|
Functions | |
| static void | sys_out8 (uint8_t data, io_port_t port) |
| Output a byte to an I/O port. | |
| static uint8_t | sys_in8 (io_port_t port) |
| Input a byte from an I/O port. | |
| static void | sys_out16 (uint16_t data, io_port_t port) |
| Output a 16 bits to an I/O port. | |
| static uint16_t | sys_in16 (io_port_t port) |
| Input 16 bits from an I/O port. | |
| static void | sys_out32 (uint32_t data, io_port_t port) |
| Output 32 bits to an I/O port. | |
| static uint32_t | sys_in32 (io_port_t port) |
| Input 32 bits from an I/O port. | |
| static void | sys_io_set_bit (io_port_t port, unsigned int bit) |
| Set the designated bit from port to 1. | |
| static void | sys_io_clear_bit (io_port_t port, unsigned int bit) |
| Clear the designated bit from port to 0. | |
| static int | sys_io_test_bit (io_port_t port, unsigned int bit) |
| Test the bit from port if it is set or not. | |
| static int | sys_io_test_and_set_bit (io_port_t port, unsigned int bit) |
| Test the bit from port and set it. | |
| static int | sys_io_test_and_clear_bit (io_port_t port, unsigned int bit) |
| Test the bit from port and clear it. | |
#include <zephyr/sys/sys_io.h>
Input 16 bits from an I/O port.
This function reads 16 bits from the port.
| port | the port address from where to read the 16 bits |
#include <zephyr/sys/sys_io.h>
Input 32 bits from an I/O port.
This function reads 32 bits from the port.
| port | the port address from where to read the 32 bits |
#include <zephyr/sys/sys_io.h>
Input a byte from an I/O port.
This function reads a byte from the port.
| port | the port address from where to read the byte |
#include <zephyr/sys/sys_io.h>
Clear the designated bit from port to 0.
This functions takes the designated bit starting from port and sets it to 0.
| port | the port address from where to look for the bit |
| bit | the designated bit to clear (from 0 to n) |
#include <zephyr/sys/sys_io.h>
Set the designated bit from port to 1.
This functions takes the designated bit starting from port and sets it to 1.
| port | the port address from where to look for the bit |
| bit | the designated bit to set (from 0 to n) |
#include <zephyr/sys/sys_io.h>
Test the bit from port and clear it.
This functions takes the designated bit starting from port, tests its current setting and clears it. It will return the previous setting.
| port | the port address from where to look for the bit |
| bit | the designated bit to test and clear (from 0 to n) |
#include <zephyr/sys/sys_io.h>
Test the bit from port and set it.
This functions takes the designated bit starting from port, tests its current setting and sets it. It will return the previous setting.
| port | the port address from where to look for the bit |
| bit | the designated bit to test and set (from 0 to n) |
#include <zephyr/sys/sys_io.h>
Test the bit from port if it is set or not.
This functions takes the designated bit starting from port and tests its current setting. It will return the current setting.
| port | the port address from where to look for the bit |
| bit | the designated bit to test (from 0 to n) |
#include <zephyr/sys/sys_io.h>
Output a 16 bits to an I/O port.
This function writes a 16 bits to the given port.
| data | the 16 bits to write |
| port | the port address where to write the 16 bits |
#include <zephyr/sys/sys_io.h>
Output 32 bits to an I/O port.
This function writes 32 bits to the given port.
| data | the 32 bits to write |
| port | the port address where to write the 32 bits |
#include <zephyr/sys/sys_io.h>
Output a byte to an I/O port.
This function writes a byte to the given port.
| data | the byte to write |
| port | the port address where to write the byte |