EFM32 Zero Gecko Software Documentation
efm32zg-doc-4.2.1
|
BITBAND Peripheral API (deprecated - use em_bus.h)
. More...
Macros | |
#define | BITBAND_Peripheral(addr, bit, val) BUS_RegBitWrite(addr, bit, val) |
Perform bit-band operation on peripheral memory location. More... | |
#define | BITBAND_PeripheralRead(addr, bit) BUS_RegBitRead(addr, bit) |
Perform a read operation on the peripheral bit-band memory location. More... | |
#define | BITBAND_SRAM(addr, bit, val) BUS_RamBitWrite(addr, bit, val) |
Perform bit-band operation on SRAM memory location. More... | |
#define | BITBAND_SRAMRead(addr, bit) BUS_RamBitRead(addr, bit) |
Read a single bit from the SRAM bit-band alias region. More... | |
#define BITBAND_Peripheral | ( | addr, | |
bit, | |||
val | |||
) | BUS_RegBitWrite(addr, bit, val) |
Bit-banding provides atomic read-modify-write cycle for single bit modification. Please refer to the reference manual for further details about bit-banding.
[in] | addr | Peripheral address location to modify bit in. |
[in] | bit | Bit position to modify, 0-31. |
[in] | val | Value to set bit to, 0 or 1. |
Definition at line 71 of file em_bitband.h.
#define BITBAND_PeripheralRead | ( | addr, | |
bit | |||
) | BUS_RegBitRead(addr, bit) |
This function reads a single bit from the peripheral bit-band alias region. Bit-banding provides atomic read-modify-write cycle for single bit modification. Please refer to the reference manual for further details about bit-banding.
[in] | addr | Peripheral address location to read. |
[in] | bit | Bit position to read, 0-31. |
Definition at line 90 of file em_bitband.h.
#define BITBAND_SRAM | ( | addr, | |
bit, | |||
val | |||
) | BUS_RamBitWrite(addr, bit, val) |
Bit-banding provides atomic read-modify-write cycle for single bit modification. Please refer to the reference manual for further details about bit-banding.
[in] | addr | SRAM address location to modify bit in. |
[in] | bit | Bit position to modify, 0-31. |
[in] | val | Value to set bit to, 0 or 1. |
Definition at line 111 of file em_bitband.h.
#define BITBAND_SRAMRead | ( | addr, | |
bit | |||
) | BUS_RamBitRead(addr, bit) |
This function reads a single bit from the SRAM bit-band alias region. Bit-banding provides atomic read-modify-write cycle for single bit modification. Please refer to the reference manual for further details about bit-banding.
[in] | addr | SRAM address location to modify bit in. |
[in] | bit | Bit position to modify, 0-31. |
Definition at line 130 of file em_bitband.h.