SmartSnippets DA1459x SDK
Files | Functions
Busy Status Register Driver Service

Busy Status Register (BSR) driver. More...

Files

file  sys_bsr.h
 Busy Status Register (BSR) driver file.
 

Functions

void sys_sw_bsr_init (void)
 Initialize the BSR module.
 
void sys_sw_bsr_acquire (SW_BSR_MASTER_ID sw_bsr_master_id, uint32_t periph_id)
 Acquire exclusive access to a specific peripheral when it could also be used by another master. This function will block until access is granted. More...
 
bool sys_sw_bsr_acquired (SW_BSR_MASTER_ID sw_bsr_master_id, uint32_t periph_id)
 Checks if exclusive access to a specific peripheral has been acquired from a given master. More...
 
void sys_sw_bsr_release (SW_BSR_MASTER_ID sw_bsr_master_id, uint32_t periph_id)
 Releases the exclusive access from a specific peripheral so it can be used by another master. More...
 

Detailed Description

Busy Status Register (BSR) driver.

Function Documentation

◆ sys_sw_bsr_acquire()

void sys_sw_bsr_acquire ( SW_BSR_MASTER_ID  sw_bsr_master_id,
uint32_t  periph_id 
)

Acquire exclusive access to a specific peripheral when it could also be used by another master. This function will block until access is granted.

Parameters
[in]sw_bsr_master_idThe SW BSR ID of the relevant master
[in]periph_idThe peripheral id for which exclusive access must be granted. Valid range is (0 - 15). Check HW_SYS_BSR_PERIPH_ID.

◆ sys_sw_bsr_acquired()

bool sys_sw_bsr_acquired ( SW_BSR_MASTER_ID  sw_bsr_master_id,
uint32_t  periph_id 
)

Checks if exclusive access to a specific peripheral has been acquired from a given master.

Parameters
[in]sw_bsr_master_idThe SW BSR ID of the relevant master
[in]periph_idThe peripheral id for which exclusive access will be checked. Valid range is (0 - BSR_PERIPH_ID_MAX). Check HW_SYS_BSR_PERIPH_ID.
Returns
true if peripheral exclusive access has been acquired from the specific master, else false.

◆ sys_sw_bsr_release()

void sys_sw_bsr_release ( SW_BSR_MASTER_ID  sw_bsr_master_id,
uint32_t  periph_id 
)

Releases the exclusive access from a specific peripheral so it can be used by another master.

Parameters
[in]sw_bsr_master_idThe SW BSR ID of the relevant master
[in]periph_idThe peripheral id for which exclusive access must be released. Valid range is (0 - 15). Check HW_SYS_BSR_PERIPH_ID.