raspberry GPIO 低权限寄存器访问函数简介
2013-04-15 23:36
316 查看
bcm2835 1.25 |
Modules
Files
Examples
Functions
Low level register access
Functions | |
uint32_t | bcm2835_peri_read (volatile uint32_t *paddr) |
uint32_t | bcm2835_peri_read_nb (volatile uint32_t *paddr) |
void | bcm2835_peri_write (volatile uint32_t *paddr, uint32_t value) |
void | bcm2835_peri_write_nb (volatile uint32_t *paddr, uint32_t value) |
void | bcm2835_peri_set_bits (volatile uint32_t *paddr, uint32_t value, uint32_t mask) |
Detailed Description
These functions provide low level register access, and should not generally need to be usedFunction Documentation
uint32_t bcm2835_peri_read | ( | volatile uint32_t * | paddr | ) |
Parameters:
[in] | paddr | Physical address to read from. See BCM2835_GPIO_BASE etc. |
See also:Physical Addresses
uint32_t bcm2835_peri_read_nb | ( | volatile uint32_t * | paddr | ) |
the same peripheral, and no other peripheral access has occurred since.
Parameters:
[in] | paddr | Physical address to read from. See BCM2835_GPIO_BASE etc. |
See also:Physical Addresses
void bcm2835_peri_set_bits | ( | volatile uint32_t * | paddr, |
uint32_t | value, | ||
uint32_t | mask | ||
) |
a subset of the bits in a register. The write is done twice, and is therefore always safe in terms of manual section 1.3 Peripheral access precautions for correct memory ordering
Parameters:
[in] | paddr | Physical address to read from. See BCM2835_GPIO_BASE etc. |
[in] | value | The 32 bit value to write, masked in by mask. |
[in] | mask | Bitmask that defines the bits that will be altered in the register. |
void bcm2835_peri_write | ( | volatile uint32_t * | paddr, |
uint32_t | value | ||
) |
Parameters:
[in] | paddr | Physical address to read from. See BCM2835_GPIO_BASE etc. |
[in] | value | The 32 bit value to write |
void bcm2835_peri_write_nb | ( | volatile uint32_t * | paddr, |
uint32_t | value | ||
) |
the same peripheral, and no other peripheral access has occurred since.
Parameters:
[in] | paddr | Physical address to read from. See BCM2835_GPIO_BASE etc. |
[in] | value | The 32 bit value to write |
相关文章推荐
- raspberry GPIO 寄存器访问函数简介
- delphi单元的变量和函数访问权限问题(访问范围/生命周期)
- js 小技巧之利用匿名函数控制方法访问权限
- C++成员变量、函数修饰符与访问权限
- 关于C++类中访问权限的若干疑问(虚函数访问权限)
- public protected private 成员函数和成员变量在public protected private 继承后访问权限问题
- 不同线程分配不同寄存器,但是代码区是共享的,即不同线程可以访问同一函数。
- public protected private 成员函数和成员变量在public protected private 继承后访问权限问题
- Linux C编程学习笔记(1):chmod函数及文件的访问权限控制
- Java言语4种访问权限修饰符简介
- Android学习(17) -- 访问权限 简介
- C++中类的访问权限针对的是类而不是对象!(为什么类中的函数可以访问对象的私有成员?)
- javascript里函数的访问权限类似private public 问题
- 通过虚函数表调用虚函数与通过虚函数表(绕过访问权限控制)
- 关于C++类中访问权限的若干疑问(虚函数访问权限)
- part4.(two)派生类成员函数和其它函数访问基类成员时的权限(访问控制表)
- RL-RTX SVC 函数: unprivileged模式下运行的任务如何修改要求privileged权限的寄存器
- 通过虚函数表调用虚函数与通过虚函数表(绕过访问权限控制)
- Java类修饰符和成员变量、函数修饰符与访问权限
- C++成员变量、函数修饰符与访问权限