InPlay API
Share memory device driver

HAL_SMEM. More...

Functions

void hal_smem_init (void)
 Globally enable HW shared memory. More...
 
void hal_smem_retn (uint32_t offset, uint32_t size)
 Enable/Disable shared memory retention. More...
 
uint32_t hal_smem_buf_start_addr (void)
 Get smem start address for data buffer. More...
 
uint32_t hal_smem_buf_end_addr (void)
 Get smem end address for data buffer. More...
 
void hal_smem_pm_suspend (void)
 PM save SMEM HW configuration registers. More...
 
void hal_smem_pm_resume (void)
 PM restore SMEM HW configuration registers. More...
 

Detailed Description

HAL_SMEM.

Function Documentation

◆ hal_smem_buf_end_addr()

uint32_t hal_smem_buf_end_addr ( void  )

Get smem end address for data buffer.

Returns
end address.

◆ hal_smem_buf_start_addr()

uint32_t hal_smem_buf_start_addr ( void  )

Get smem start address for data buffer.

Returns
start address.

◆ hal_smem_init()

void hal_smem_init ( void  )

Globally enable HW shared memory.

Note
Shared memory is used by the following HW modules:
  1. BLE
  2. Antena control Rx data
  3. Audio Rx
  4. Audio Tx
  5. HWACC
  6. Sensor ADC
  7. AHB trigger The API is based on Inplay configuration tool generated configuration parameters for the shared memory.
Returns
void. This function has no return value.

◆ hal_smem_pm_resume()

void hal_smem_pm_resume ( void  )

PM restore SMEM HW configuration registers.

Returns
No return

◆ hal_smem_pm_suspend()

void hal_smem_pm_suspend ( void  )

PM save SMEM HW configuration registers.

Returns
No return

◆ hal_smem_retn()

void hal_smem_retn ( uint32_t  offset,
uint32_t  size 
)

Enable/Disable shared memory retention.

Parameters
[in]en1: enable retention, 0: otherwise
[in]offsetThe retention starting offset in the shared memory
[in]sizeThe retention size
Returns
void. This function has no return value.