Morse Micro IoT SDK  2.9.7
chip_cfg Struct Reference

Detailed Description

Chip configuration data structure.

Definition at line 15 of file chip_cfg.h.

#include <chip_cfg.h>

Data Fields

const char * name
 Chip name. More...
 
uint32_t reg_chip_id
 Address of the chip ID register. More...
 
int(* gpio_set_oe )(uint8_t gpio_num, bool oe)
 Function to set GPIO output enable. More...
 
int(* gpio_set_value )(uint8_t gpio_num, bool value)
 Function to set GPIO value. More...
 
uint8_t busy_gpio_num
 Busy GPIO number. More...
 
const uint32_t * valid_chip_ids
 List of valid chip IDs for this configuration. More...
 
size_t n_valid_chip_ids
 Number of valid chip IDs in valid_chip_ids. More...
 

Field Documentation

◆ busy_gpio_num

uint8_t chip_cfg::busy_gpio_num

Busy GPIO number.

Definition at line 26 of file chip_cfg.h.

◆ gpio_set_oe

int(* chip_cfg::gpio_set_oe) (uint8_t gpio_num, bool oe)

Function to set GPIO output enable.

Definition at line 22 of file chip_cfg.h.

◆ gpio_set_value

int(* chip_cfg::gpio_set_value) (uint8_t gpio_num, bool value)

Function to set GPIO value.

Definition at line 24 of file chip_cfg.h.

◆ n_valid_chip_ids

size_t chip_cfg::n_valid_chip_ids

Number of valid chip IDs in valid_chip_ids.

Definition at line 30 of file chip_cfg.h.

◆ name

const char* chip_cfg::name

Chip name.

Definition at line 18 of file chip_cfg.h.

◆ reg_chip_id

uint32_t chip_cfg::reg_chip_id

Address of the chip ID register.

Definition at line 20 of file chip_cfg.h.

◆ valid_chip_ids

const uint32_t* chip_cfg::valid_chip_ids

List of valid chip IDs for this configuration.

Definition at line 28 of file chip_cfg.h.


The documentation for this struct was generated from the following file: