CC26xx Driver Library |

- Main Page
- Related Pages
- CC26xx APIs
- Register Descriptions
- Online Resources

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Macros | Functions
adi.h File Reference
`#include <stdbool.h>`
`#include <stdint.h>`
`#include <inc/hw_types.h>`
`#include <inc/hw_uart.h>`
`#include <inc/hw_memmap.h>`
`#include <inc/hw_ints.h>`
`#include <inc/hw_adi.h>`
`#include <driverlib/debug.h>`
`#include <driverlib/ddi.h>`

Go to the source code of this file.

## Macros
#define | ADI_SLAVE_REGS 16
#define | ADI_NO_WAIT 0x00000000
#define | ADI_WAIT_FOR_ACK 0x00000004
#define | ADI_SPEED_2 0x00000000
#define | ADI_SPEED_4 0x00000001
#define | ADI_SPEED_8 0x00000002
#define | ADI_SPEED_16 0x00000003
#define | ADI_CONFIG_MASK 0x00000007
#define | ADI_PROTECT 0x00000080
#define | ADI_ACK 0x00000001
#define | ADI_SYNC 0x00000000

## Functions
__STATIC_INLINE uint32_t | ADIStatusGet (uint32_t ui32Base)
| Get the status of an ADI module. More...
__STATIC_INLINE void | ADIConfigSet (uint32_t ui32Base, uint32_t ui32Config, bool bProtect)
| Configure the ADI Slave. More...
__STATIC_INLINE void | ADISync (uint32_t ui32Base)
| Synchronize the ADI slave. More...
__STATIC_INLINE void | ADIProtect (uint32_t ui32Base)
| Protect an ADI slave configuration by locking the configuration register access. More...
__STATIC_INLINE void | ADI8RegWrite (uint32_t ui32Base, uint32_t ui32Reg, uint8_t ui8Val)
| Write an 8 bit value to a register in an ADI slave. More...
__STATIC_INLINE void | ADI16RegWrite (uint32_t ui32Base, uint32_t ui32Reg, uint16_t ui16Val)
| Write a 16 bit value to 2 registers in the ADI slave. More...
__STATIC_INLINE void | ADI32RegWrite (uint32_t ui32Base, uint32_t ui32Reg, uint32_t ui32Val)
| Write a 32 bit value to 4 registers in the ADI slave. More...
__STATIC_INLINE uint32_t | ADI8RegRead (uint32_t ui32Base, uint32_t ui32Reg)
| Read the value of an 8 bit register in the ADI slave. More...
__STATIC_INLINE uint32_t | ADI16RegRead (uint32_t ui32Base, uint32_t ui32Reg)
| Read the value in a 16 bit register. More...
__STATIC_INLINE uint32_t | ADI32RegRead (uint32_t ui32Base, uint32_t ui32Reg)
| Read the value in a 32 bit register. More...
__STATIC_INLINE void | ADI8BitsSet (uint32_t ui32Base, uint32_t ui32Reg, uint8_t ui8Val)
| Set specific bits in a single 8 bit ADI register. More...
__STATIC_INLINE void | ADI16BitsSet (uint32_t ui32Base, uint32_t ui32Reg, uint16_t ui16Val)
| Set specific bits in 2 x 8 bit ADI slave registers. More...
__STATIC_INLINE void | ADI32BitsSet (uint32_t ui32Base, uint32_t ui32Reg, uint32_t ui32Val)
| Set specific bits in 4 x 8 bit ADI slave registers. More...
__STATIC_INLINE void | ADI8BitsClear (uint32_t ui32Base, uint32_t ui32Reg, uint8_t ui8Val)
| Clear specific bits in an 8 bit ADI register. More...
__STATIC_INLINE void | ADI16BitsClear (uint32_t ui32Base, uint32_t ui32Reg, uint16_t ui16Val)
| Clear specific bits in two 8 bit ADI register. More...
__STATIC_INLINE void | ADI32BitsClear (uint32_t ui32Base, uint32_t ui32Reg, uint32_t ui32Val)
| Clear specific bits in four 8 bit ADI register. More...
__STATIC_INLINE void | ADI4SetValBit (uint32_t ui32Base, uint32_t ui32Reg, bool bWriteHigh, uint8_t ui8Mask, uint8_t ui8Val)
| Set a value on any 4 bits inside an 8 bit register in the ADI slave. More...
__STATIC_INLINE void | ADI8SetValBit (uint32_t ui32Base, uint32_t ui32Reg, uint16_t ui16Mask, uint16_t ui16Val)
| Set a value on any bits inside an 8 bit register in the ADI slave. More...
__STATIC_INLINE void | ADI16SetValBit (uint32_t ui32Base, uint32_t ui32Reg, uint32_t ui32Mask, uint32_t ui32Val)
| Set a value on any bits inside an 2 x 8 bit register aligned on a half-word (byte) boundary in the ADI slave. More...