AM62L FreeRTOS SDK  11.00.00

Introduction

This module contains SCMI Clock protocol APIs.

Files

file  scmi_clock.h
 Header file containing scmi clock protocol APIs.
 

Functions

int32_t SCMI_clockGetProtocolAttrs (SCMI_Handle handle, uint32_t *numClocks)
 API to get clock protocol attributes using clockSCMI protocol. More...
 
int32_t SCMI_clockGetAttrs (SCMI_Handle handle, uint32_t clockId, uint32_t *attributes, uint8_t *name)
 API to get clock attributes for a clock Id. More...
 
int32_t SCMI_clockConfigSet (SCMI_Handle handle, uint32_t clockId, uint32_t clockState)
 API to set clock state for a clock to enable or disable state. More...
 
int32_t SCMI_clockConfigGet (SCMI_Handle handle, uint32_t clockId, uint32_t *clockState)
 API to get clock state for a clock. More...
 
int32_t SCMI_clockNameGet (SCMI_Handle handle, uint32_t clockId, uint8_t *name)
 API to get clock's extended name. More...
 
int32_t SCMI_clockRateGet (SCMI_Handle handle, uint32_t clockId, uint64_t *clockRate)
 API to get clock rate for a clock. More...
 
int32_t SCMI_clockRateSet (SCMI_Handle handle, uint32_t clockId, uint64_t clockRate)
 API to set clock rate for a clock. More...
 
int32_t SCMI_clockParentSet (SCMI_Handle handle, uint32_t clockId, uint32_t parentId)
 API to set parent for a clock. More...
 
int32_t SCMI_clockParentGet (SCMI_Handle handle, uint32_t clockId, uint32_t *parentId)
 API to get parent for a clock. More...
 
int32_t SCMI_clockGetPossibleParents (SCMI_Handle handle, uint32_t clockId, uint32_t *numPosParents, uint32_t *possibleParents)
 API to get possible parents for a clock. More...
 
int32_t SCMI_clockProtocolInit (SCMI_Handle handle)
 API to initialise clock protocol. More...
 

Function Documentation

◆ SCMI_clockGetProtocolAttrs()

int32_t SCMI_clockGetProtocolAttrs ( SCMI_Handle  handle,
uint32_t *  numClocks 
)

API to get clock protocol attributes using clockSCMI protocol.

Parameters
handleSCMI_Handle handle returned from SCMI_open
numClocksPointer to get number of clocks
Returns
SystemP_SUCCESS or SystemP_FAILURE

◆ SCMI_clockGetAttrs()

int32_t SCMI_clockGetAttrs ( SCMI_Handle  handle,
uint32_t  clockId,
uint32_t *  attributes,
uint8_t *  name 
)

API to get clock attributes for a clock Id.

Parameters
handleSCMI_Handle handle returned from SCMI_open
clockIdClock Identifier
attributesPointer to clock attributes
namePointer to name of clock
Returns
SystemP_SUCCESS or SystemP_FAILURE

◆ SCMI_clockConfigSet()

int32_t SCMI_clockConfigSet ( SCMI_Handle  handle,
uint32_t  clockId,
uint32_t  clockState 
)

API to set clock state for a clock to enable or disable state.

Parameters
handleSCMI_Handle handle returned from SCMI_open
clockIdClock Identifier
clockStateClock state
Returns
SystemP_SUCCESS or SystemP_FAILURE

◆ SCMI_clockConfigGet()

int32_t SCMI_clockConfigGet ( SCMI_Handle  handle,
uint32_t  clockId,
uint32_t *  clockState 
)

API to get clock state for a clock.

Parameters
handleSCMI_Handle handle returned from SCMI_open
clockIdClock Identifier
clockStatePointer to Clock state
Returns
SystemP_SUCCESS or SystemP_FAILURE

◆ SCMI_clockNameGet()

int32_t SCMI_clockNameGet ( SCMI_Handle  handle,
uint32_t  clockId,
uint8_t *  name 
)

API to get clock's extended name.

Parameters
handleSCMI_Handle handle returned from SCMI_open
clockIdClock Identifier
namePointer to extended name
Returns
SystemP_SUCCESS or SystemP_FAILURE

◆ SCMI_clockRateGet()

int32_t SCMI_clockRateGet ( SCMI_Handle  handle,
uint32_t  clockId,
uint64_t *  clockRate 
)

API to get clock rate for a clock.

Parameters
handleSCMI_Handle handle returned from SCMI_open
clockIdClock Identifier
clockRatePointer to clock rate
Returns
SystemP_SUCCESS or SystemP_FAILURE

◆ SCMI_clockRateSet()

int32_t SCMI_clockRateSet ( SCMI_Handle  handle,
uint32_t  clockId,
uint64_t  clockRate 
)

API to set clock rate for a clock.

Parameters
handleSCMI_Handle handle returned from SCMI_open
clockIdClock Identifier
clockRateClock rate
Returns
SystemP_SUCCESS or SystemP_FAILURE

◆ SCMI_clockParentSet()

int32_t SCMI_clockParentSet ( SCMI_Handle  handle,
uint32_t  clockId,
uint32_t  parentId 
)

API to set parent for a clock.

Parameters
handleSCMI_Handle handle returned from SCMI_open
clockIdClock Identifier
parentIdParent Identifier for the clock
Returns
SystemP_SUCCESS or SystemP_FAILURE

◆ SCMI_clockParentGet()

int32_t SCMI_clockParentGet ( SCMI_Handle  handle,
uint32_t  clockId,
uint32_t *  parentId 
)

API to get parent for a clock.

Parameters
handleSCMI_Handle handle returned from SCMI_open
clockIdClock Identifier
parentIdPointer to Parent Identifier for the clock
Returns
SystemP_SUCCESS or SystemP_FAILURE

◆ SCMI_clockGetPossibleParents()

int32_t SCMI_clockGetPossibleParents ( SCMI_Handle  handle,
uint32_t  clockId,
uint32_t *  numPosParents,
uint32_t *  possibleParents 
)

API to get possible parents for a clock.

Parameters
handleSCMI_Handle handle returned from SCMI_open
clockIdClock Identifier
numPosParentsPointer to number for possible parents.
possibleParentsPointer to array of possible parents.
Returns
SystemP_SUCCESS or SystemP_FAILURE

◆ SCMI_clockProtocolInit()

int32_t SCMI_clockProtocolInit ( SCMI_Handle  handle)

API to initialise clock protocol.

Parameters
handleSCMI_Handle handle returned from SCMI_open
Returns
SystemP_SUCCESS or SystemP_FAILURE