no-OS
|
Structure holding the parameters for TDM initialization. More...
#include <no_os_tdm.h>
Public Attributes | |
enum no_os_tdm_mode | mode |
uint8_t | data_size |
uint8_t | data_offset |
bool | data_lsb_first |
uint8_t | slots_per_frame |
bool | fs_active_low |
uint8_t | fs_active_length |
bool | fs_lastbit |
bool | rising_edge_sampling |
uint32_t | irq_id |
void(* | rx_complete_callback )(void *rx_arg) |
void(* | rx_half_complete_callback )(void *rx_arg) |
const struct no_os_tdm_platform_ops * | platform_ops |
void * | extra |
Structure holding the parameters for TDM initialization.
bool no_os_tdm_init_param::data_lsb_first |
Data ordering (default: msb first)
uint8_t no_os_tdm_init_param::data_offset |
Data offset in a slot, specified in number of bits as offset from MSbit
uint8_t no_os_tdm_init_param::data_size |
Useful data size in a slot, specified in number of bits
void* no_os_tdm_init_param::extra |
TDM extra parameters (platform specific)
uint8_t no_os_tdm_init_param::fs_active_length |
Frame sync active length specified in number of bits
bool no_os_tdm_init_param::fs_active_low |
Frame sync polarity specifier (default: FS active high)
bool no_os_tdm_init_param::fs_lastbit |
Frame sync is normally asserted on first bit of slot 0 of a frame, this specifier allows assertion on last bit of the previous frame
uint32_t no_os_tdm_init_param::irq_id |
enum no_os_tdm_mode no_os_tdm_init_param::mode |
TDM operating mode: master/slave, tx/rx
const struct no_os_tdm_platform_ops* no_os_tdm_init_param::platform_ops |
Platform operation function pointers
bool no_os_tdm_init_param::rising_edge_sampling |
Specify whether data sampling occurs on SCK rising edge (default: on SCK falling edge)
void(* no_os_tdm_init_param::rx_complete_callback) (void *rx_arg) |
DMA receive complete callback
void(* no_os_tdm_init_param::rx_half_complete_callback) (void *rx_arg) |
DMA receive Half complete callback
uint8_t no_os_tdm_init_param::slots_per_frame |
Number of slots in a frame