AM64x MCU+ SDK  10.00.00

Introduction

DMSC controls the power management, security and resource management of the device.

Functions

static uint32_t get_field (uint32_t val, uint32_t end, uint32_t start)
 extract the specified bit field from a 32 bit unsigned integer. More...
 
static uint32_t set_field (uint32_t tgt, uint32_t end, uint32_t start, uint32_t val)
 set the specified bit field from a 32 bit unsigned integer to provided value More...
 
static uint32_t get_mask (uint32_t end, uint32_t start)
 Generate a mask for the give bit field [end:start]. More...
 

Macros

#define TISCI_BIT(n)   (((uint32_t) 1U) << (n))
 This file contains: More...
 

Macro Definition Documentation

◆ TISCI_BIT

#define TISCI_BIT (   n)    (((uint32_t) 1U) << (n))

This file contains:

    WARNING!!: Autogenerated file from SYSFW. DO NOT MODIFY!!

System Firmware

Functions for bit and bitfield operations TISCI_BIT macro for easily calculating a bit at offset (n)

Function Documentation

◆ get_field()

static uint32_t get_field ( uint32_t  val,
uint32_t  end,
uint32_t  start 
)
inlinestatic

extract the specified bit field from a 32 bit unsigned integer.

Parameters
valinput from which the bitfield is extracted
endupper bit index of the bitfield
startlower bit index of the bitfield
Returns
extracted bit field, right shifted by start bits.

◆ set_field()

static uint32_t set_field ( uint32_t  tgt,
uint32_t  end,
uint32_t  start,
uint32_t  val 
)
inlinestatic

set the specified bit field from a 32 bit unsigned integer to provided value

Parameters
tgtinput in which the bitfield is to be set
endupper bit index of the bitfield
startlower bit index of the bitfield
valvalue to which the bit field is to be set.
Returns
input value with bitfield updated as specified.

◆ get_mask()

static uint32_t get_mask ( uint32_t  end,
uint32_t  start 
)
inlinestatic

Generate a mask for the give bit field [end:start].

All the bits between the two specified bit indices including the specified indices are set to 1. Rest of the bits are set to zero.

Parameters
endupper bit index of the mask
startlower bit index of the mask
Returns
generated mask