EXIO#

Functions

int exio_init(void *i2c, void *gpio_reset)#
exio_intr_t exio_get_intr_source(void)#
int exio_get_intr_level(exio_intr_t intr)#
int exio_set_metering_power(bool on)#
int exio_set_sensor_power(bool on)#
int exio_set_audio_power(bool on)#

Set the power state of the audio device.

This function controls the power state of the audio device connected to the external IO. It uses the TCA9539 IO expander to control the power supply to the audio device.

Note

It takes 120ms to power on the audio device and 80ms to power off.

Parameters:

on[in] If true, the audio device is powered on. If false, the audio device is powered off.

Returns:

0 if the operation was successful, or a negative error code if it failed.

int exio_set_qca7005_reset(bool on)#
int exio_set_w5500_reset(bool on)#
int exio_set_led(bool on)#

Enums

enum exio_intr_t#

Values:

enumerator EXIO_INTR_NONE = 0x00#
enumerator EXIO_INTR_EMERGENCY = 0x01#
enumerator EXIO_INTR_USB_CONNECT = 0x02#
enumerator EXIO_INTR_ACCELEROMETER = 0x04#