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
ddi.h File Reference
`#include <stdbool.h>`
`#include <stdint.h>`
`#include <inc/hw_types.h>`
`#include <inc/hw_memmap.h>`
`#include <inc/hw_ddi.h>`
`#include <inc/hw_aux_smph.h>`
`#include <driverlib/debug.h>`
`#include <driverlib/cpu.h>`

Go to the source code of this file.

## Macros
#define | DDI_SLAVE_REGS 64
#define | DDI_NO_WAIT 0x00000000
#define | DDI_WAIT_FOR_ACK 0x00000004
#define | DDI_SPEED_2 0x00000000
#define | DDI_SPEED_4 0x00000001
#define | DDI_SPEED_8 0x00000002
#define | DDI_SPEED_16 0x00000003
#define | DDI_CONFIG_MASK 0x00000007
#define | DDI_PROTECT 0x00000080
#define | DDI_ACK 0x00000001
#define | DDI_SYNC 0x00000000

## Functions
__STATIC_INLINE void | AuxAdiDdiSafeWrite (uint32_t nAddr, uint32_t nData, uint32_t nSize)
__STATIC_INLINE uint32_t | AuxAdiDdiSafeRead (uint32_t nAddr, uint32_t nSize)
__STATIC_INLINE uint32_t | DDIStatusGet (uint32_t ui32Base)
| Get the status of the DDI. More...
__STATIC_INLINE void | DDIConfigSet (uint32_t ui32Base, uint32_t ui32Config, bool bProtect)
| Configure the DDI Slave. More...
__STATIC_INLINE void | DDISync (uint32_t ui32Base)
| Synchronize a DDI slave. More...
__STATIC_INLINE void | DDIProtect (uint32_t ui32Base)
| Protect a DDI slave by locking the register access. More...
__STATIC_INLINE void | DDI32RegWrite (uint32_t ui32Base, uint32_t ui32Reg, uint32_t ui32Val)
| Write a 32 bit value to a register in the DDI slave. More...
__STATIC_INLINE uint32_t | DDI32RegRead (uint32_t ui32Base, uint32_t ui32Reg)
| Read the value in a 32 bit register. More...
__STATIC_INLINE void | DDI32BitsSet (uint32_t ui32Base, uint32_t ui32Reg, uint32_t ui32Val)
| Set specific bits in a DDI slave register. More...
__STATIC_INLINE void | DDI32BitsClear (uint32_t ui32Base, uint32_t ui32Reg, uint32_t ui32Val)
| Clear specific bits in a 32 bit DDI register. More...
__STATIC_INLINE void | DDI8SetValBit (uint32_t ui32Base, uint32_t ui32Reg, uint32_t ui32Byte, uint16_t ui16Mask, uint16_t ui16Val)
| Set a value on any 8 bits inside a 32 bit register in the DDI slave. More...
__STATIC_INLINE void | DDI16SetValBit (uint32_t ui32Base, uint32_t ui32Reg, bool bWriteHigh, uint32_t ui32Mask, uint32_t ui32Val)
| Set a value on any 16 bits inside a 32 bit register aligned on a half-word boundary in the DDI slave. More...
void | DDI16BitWrite (uint32_t ui32Base, uint32_t ui32Reg, uint32_t ui32Mask, uint32_t ui32WrData)
| Write a single bit using a 16-bit maskable write. More...
void | DDI16BitfieldWrite (uint32_t ui32Base, uint32_t ui32Reg, uint32_t ui32Mask, uint32_t ui32Shift, uint16_t ui32Data)
| Write a bit field via the DDI using 16-bit maskable write. More...
uint16_t | DDI16BitRead (uint32_t ui32Base, uint32_t ui32Reg, uint32_t ui32Mask)
| Read a bit via the DDI using 16-bit READ. More...
uint16_t | DDI16BitfieldRead (uint32_t ui32Base, uint32_t ui32Reg, uint32_t ui32Mask, uint32_t ui32Shift)
| Read a bitfield via the DDI using 16-bit READ. More...