sl_efp_init_data_t Struct Reference

EFP driver initialization structure.

#include <sl_efp.h>

Data Fields

unsigned int config_size
Number of register writes inside the configuration data. Set to 0 on preprogrammed parts.
uint8_t * config_data
Configuration data, pairs of (addr,data),(addr,data),... Set to NULL on preprogrammed parts.
bool is_host_efp
True if this EFP powers host SoC.
sl_efp_em_transition_mode_t em_transition_mode
Method for controlling EFP Energy Mode (EM) transitions.
bool enable_irq_pin
Initialize a GPIO pin as EFP IRQ input.
GPIO_Port_TypeDef irq_port
GPIO port to use for EFP IRQ GPIO pin.
unsigned int irq_pin
GPIO pin number to use for EFP IRQ GPIO pin.
I2C_TypeDef * i2c_peripheral
I2C peripheral instance pointer.
GPIO_Port_TypeDef i2c_scl_port
GPIO port to use for I2C SCL signal.
unsigned int i2c_scl_pin
GPIO pin number to use for I2C SCL signal.
GPIO_Port_TypeDef i2c_sda_port
GPIO port to use for I2C SDA signal.
unsigned int i2c_sda_pin
GPIO pin number to use for I2C SDA signal.

EFP driver initialization structure.

Field Documentation

config_size

unsigned int sl_efp_init_data_t::config_size

Number of register writes inside the configuration data. Set to 0 on preprogrammed parts.

config_data

uint8_t* sl_efp_init_data_t::config_data

Configuration data, pairs of (addr,data),(addr,data),... Set to NULL on preprogrammed parts.

is_host_efp

bool sl_efp_init_data_t::is_host_efp

True if this EFP powers host SoC.

em_transition_mode

sl_efp_em_transition_mode_t sl_efp_init_data_t::em_transition_mode

Method for controlling EFP Energy Mode (EM) transitions.

enable_irq_pin

bool sl_efp_init_data_t::enable_irq_pin

Initialize a GPIO pin as EFP IRQ input.

irq_port

GPIO_Port_TypeDef sl_efp_init_data_t::irq_port

GPIO port to use for EFP IRQ GPIO pin.

irq_pin

unsigned int sl_efp_init_data_t::irq_pin

GPIO pin number to use for EFP IRQ GPIO pin.

i2c_peripheral

I2C_TypeDef* sl_efp_init_data_t::i2c_peripheral

I2C peripheral instance pointer.

i2c_scl_port

GPIO_Port_TypeDef sl_efp_init_data_t::i2c_scl_port

GPIO port to use for I2C SCL signal.

i2c_scl_pin

unsigned int sl_efp_init_data_t::i2c_scl_pin

GPIO pin number to use for I2C SCL signal.

i2c_sda_port

GPIO_Port_TypeDef sl_efp_init_data_t::i2c_sda_port

GPIO port to use for I2C SDA signal.

i2c_sda_pin

unsigned int sl_efp_init_data_t::i2c_sda_pin

GPIO pin number to use for I2C SDA signal.