Software APIs
Functions
dif_rv_dm.h File Reference

(c86edd9306)

RV_DM Device Interface Functions More...

#include <stdint.h>
#include "sw/device/lib/dif/autogen/dif_rv_dm_autogen.h"

Go to the source code of this file.

Functions

OT_WARN_UNUSED_RESULT dif_result_t dif_rv_dm_late_debug_configure (const dif_rv_dm_t *rv_dm, dif_toggle_t enable)
 Late debug enable/disable configuration. More...
 
OT_WARN_UNUSED_RESULT dif_result_t dif_rv_dm_late_debug_lock (const dif_rv_dm_t *rv_dm)
 Locks the late debug enable/disable configuration. More...
 
OT_WARN_UNUSED_RESULT dif_result_t dif_rv_dm_late_debug_is_locked (const dif_rv_dm_t *rv_dm, bool *is_locked)
 Checks whether the late debug enable/disable configuration is locked. More...
 

Detailed Description

RV_DM Device Interface Functions

Definition in file dif_rv_dm.h.

Function Documentation

◆ dif_rv_dm_late_debug_configure()

OT_WARN_UNUSED_RESULT dif_result_t dif_rv_dm_late_debug_configure ( const dif_rv_dm_t rv_dm,
dif_toggle_t  enable 
)

Late debug enable/disable configuration.

RV_DM is gated by the life cycle controller so that it is only usable in TEST_UNLOCKED, DEV and RMA states. In DEV life cycle state, this block supports late debug enablement via firmware, which allows the ROM or ROM_EXT to implement a debug enablement policy. The debug enablement functionality can be activated by calling this function.

Parameters
rv_dmA RV_DM handle.
enableEnable or disable late debug.
Returns
The result of the operation.

Definition at line 18 of file dif_rv_dm.c.

◆ dif_rv_dm_late_debug_is_locked()

OT_WARN_UNUSED_RESULT dif_result_t dif_rv_dm_late_debug_is_locked ( const dif_rv_dm_t rv_dm,
bool *  is_locked 
)

Checks whether the late debug enable/disable configuration is locked.

Parameters
rv_dmA RV_DM handle.
[out]is_lockedOut-param for whether the configuration is locked.
Returns
The result of the operation.

Definition at line 51 of file dif_rv_dm.c.

◆ dif_rv_dm_late_debug_lock()

OT_WARN_UNUSED_RESULT dif_result_t dif_rv_dm_late_debug_lock ( const dif_rv_dm_t rv_dm)

Locks the late debug enable/disable configuration.

This function locks the late debug enable/disable configuration register. Once locked, the late debug enable/disable configuration cannot be changed until the next reset.

Parameters
rv_dmA RV_DM handle.
Returns
The result of the operation.

Definition at line 39 of file dif_rv_dm.c.