Data Structures | |
| struct | wiced_i2c_device_t |
| struct | wiced_spi_device_t |
Typedefs | |
| typedef platform_8021as_time_t | wiced_8021as_time_t |
| typedef platform_pin_config_t | wiced_gpio_config_t |
| typedef platform_gpio_irq_callback_t | wiced_gpio_irq_handler_t |
| typedef platform_gpio_irq_trigger_t | wiced_gpio_irq_trigger_t |
| typedef platform_i2c_bus_address_width_t | wiced_i2c_bus_address_width_t |
| typedef platform_i2c_message_t | wiced_i2c_message_t |
| typedef platform_i2c_speed_mode_t | wiced_i2c_speed_mode_t |
| typedef platform_rtc_time_t | wiced_rtc_time_t |
| typedef platform_spi_message_segment_t | wiced_spi_message_segment_t |
| typedef platform_spi_slave_command_t | wiced_spi_slave_command_t |
| typedef platform_spi_slave_config_t | wiced_spi_slave_config_t |
| typedef platform_spi_slave_data_buffer_t | wiced_spi_slave_data_buffer_t |
| typedef platform_spi_slave_transfer_direction_t | wiced_spi_slave_transfer_direction_t |
| typedef platform_spi_slave_transfer_status_t | wiced_spi_slave_transfer_status_t |
| typedef platform_uart_config_t | wiced_uart_config_t |
Enumerations | |
| enum | wiced_active_state_t { WICED_ACTIVE_LOW = 0 , WICED_ACTIVE_HIGH = 1 } |
| enum | wiced_led_index_t { WICED_LED_INDEX_1 = 0 , WICED_LED_INDEX_2 , WICED_LED_INDEX_3 , WICED_LED_INDEX_4 , WICED_LED_INDEX_MAX } |
| enum | wiced_led_state_t { WICED_LED_OFF = 0 , WICED_LED_ON } |
Defines functions that access platform specific peripherals
802.1AS time
GPIO configuration
GPIO IRQ callback
GPIO IRQ trigger
I2C bus address width
I2C message
I2C speed mode
| typedef platform_rtc_time_t wiced_rtc_time_t |
RTC time
SPI message
| typedef platform_spi_slave_command_t wiced_spi_slave_command_t |
SPI slave command
SPI Slave configuration
| typedef platform_spi_slave_data_buffer_t wiced_spi_slave_data_buffer_t |
SPI slave data
SPI transfer direction (Read/Write)
SPI transfer status
UART configuration
| enum wiced_active_state_t |
| enum wiced_led_index_t |
| enum wiced_led_state_t |
| wiced_result_t wiced_audio_timer_disable | ( | void | ) |
Disable audio timer
| wiced_result_t wiced_audio_timer_enable | ( | uint32_t | audio_frame_count | ) |
Enable audio timer
| [in] | audio_frame_count | : Audio timer interrupts period expressed in number of audio samples/frames |
| wiced_result_t wiced_audio_timer_get_frame_sync | ( | uint32_t | timeout_msecs | ) |
Wait for audio timer frame sync event
| [in] | timeout_msecs | : Timeout value in msecs; WICED_NO_WAIT or WICED_WAIT_FOREVER otherwise. |
| wiced_result_t wiced_audio_timer_get_nanoseconds | ( | uint32_t | audio_sample_rate, |
| uint32_t * | audio_time_secs, | ||
| uint32_t * | audio_time_nanosecs ) |
Read audio timer value in seconds and nanoseconds; a valid audio sample rate needs to be provided
| [in] | audio_sample_rate | : sample rate of audio platback/capture |
| [out] | audio_time_secs | : returned time seconds |
| [out] | audio_time_nanosecs | : returned time nanoseconds portion |
| wiced_result_t wiced_audio_timer_get_resolution | ( | uint32_t | audio_sample_rate, |
| uint32_t * | ticks_per_sec ) |
Get audio timer resolution (ticks per second)
| [in] | audio_sample_rate | : Audio sample rate |
| [out] | ticks_per_sec | : Returned audio timer resolution |
| wiced_result_t wiced_audio_timer_get_time | ( | uint32_t * | time_hi, |
| uint32_t * | time_lo ) |
Read audio timer value (tick count)
| [out] | time_hi | : Upper 32-bit of 64-bit audio timer ticks |
| [out] | time_lo | : Lower 32-bit of 64-bit audio timer ticks |
| wiced_result_t wiced_platform_get_rtc_time | ( | wiced_rtc_time_t * | time | ) |
This function will return the value of time read from the on board CPU real time clock. Time value must be given in the format of the structure wiced_rtc_time_t
| [out] | time | : Pointer to a time structure |
| wiced_result_t wiced_platform_set_rtc_time | ( | const wiced_rtc_time_t * | time | ) |
This function will set MCU RTC time to a new value. Time value must be given in the format of the structure wiced_rtc_time_t
| [in] | time | : Pointer to a time structure |
| wiced_result_t wiced_time_disable_8021as | ( | void | ) |
Disable the 802.1AS time functionality.
| wiced_result_t wiced_time_enable_8021as | ( | void | ) |
Enable the 802.1AS time functionality.
| wiced_result_t wiced_time_read_8021as | ( | wiced_8021as_time_t * | as_time | ) |
Read the 802.1AS time.
Retrieve the origin timestamp in the last sync message, correct for the intervening interval and return the corrected (master) time in seconds + nanoseconds. Optionally, retrieve corresponding audio time.
| [in/out] | as_time: pointer to 802.1AS structure wiced_8021as_time_t |