Writeb (), Writew (), Writel (), readb (), READW (), READL () macro function __ function

Source: Internet
Author: User
writeb (), Writew (), Writel () macro function

function :
Writes data to the memory-mapped I/O space.
Write 32-bit data (4 bytes) on the WRITEB () I/O written on 8-bit data (1 bytes) Writew () on the 16-bit data (2-byte) Wirtel () I/O

prototypes
Reference #include <asm/io.h>

voidWriteb (unsigned CharData,unsigned ShortAddr)
voidWritew (unsigned CharData,unsigned ShortAddr)
voidWritel (unsigned CharData,unsigned ShortAddr)readb (), READW (), READL () macro function function
Reads data from the memory-mapped I/O space.
READB reads 8-bit data from I/O (1 bytes), READW reads 16-bit data from I/O (2 bytes), and Readl reads 32 bits of data (4 bytes) from I/O.prototypes
#include <asm/io.h>

unsigned CharREADB (unsigned intAddr)
unsigned CharREADW (unsigned intAddr)
unsigned CharREADL (unsigned intAddr)

variable
Addr I/O address.
return value: A numeric value read from I/O space.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.