Sound Open Firmware
Loading...
Searching...
No Matches
module_param Struct Reference

Module TLV parameters container - used for both config types. More...

#include <generic.h>

Data Fields

uint32_t id
 Specifies the unique id of a parameter.
uint32_t size
 The size of whole parameter - id + size + data.
int32_t data []
 A pointer to memory where config is stored.

Detailed Description

Module TLV parameters container - used for both config types.

For example if one want to set the sample_rate to 16 [kHz] and this parameter was assigned to id 0x01, its max size is four bytes then the configuration filed should look like this (note little-endian format): 0x01 0x00 0x00 0x00, 0x0C 0x00 0x00 0x00, 0x10 0x00 0x00 0x00.

Field Documentation

◆ data

int32_t module_param::data[]

A pointer to memory where config is stored.

◆ id

uint32_t module_param::id

Specifies the unique id of a parameter.

For example the parameter sample_rate may have an id of 0x01.

◆ size

uint32_t module_param::size

The size of whole parameter - id + size + data.


The documentation for this struct was generated from the following file:
  • /home/lrg/work/sof-dox-work/src/include/sof/audio/module_adapter/module/generic.h