PDL for FM4  Version1.2
Peripheral Driverl Library for FM4
Descriptor System Data Transfer Controller (DSTC)

Data Structures

struct  stc_dstc_dreqenb
 DREQENB structure. More...
 
struct  stc_dstc_hwint
 HWINT structure. More...
 
struct  stc_dstc_hwintclr
 HWINTCLR structure. More...
 
struct  stc_dstc_dqmsk
 DQMSK structure. More...
 
struct  stc_dstc_dqmskclr
 DQMSKCLR structure. More...
 
struct  stc_dstc_des0
 Definition of Descriptor 0 (DES0 - Transfer Basic Setting) More...
 
struct  stc_dstc_des1_mode0
 Definition of Descriptor 1 (DES1 - Number of Transfers) in Mode 0. More...
 
struct  stc_dstc_des1_mode1
 Definition of Descriptor 1 (DES1 - Number of Transfers) in Mode 1. More...
 
struct  stc_dstc_des0123
 Definition of Descriptor Group DES0 - DES3. More...
 
struct  stc_dstc_des01234
 Definition of Descriptor Group DES0 - DES4. More...
 
struct  stc_dstc_des012345
 Definition of Descriptor Group DES0 - DES5. More...
 
struct  stc_dstc_des0123456
 Definition of Descriptor Group DES0 - DES6. More...
 
struct  stc_dstc_des01235
 Definition of Descriptor Group DES0 - DES3, DES5. More...
 
struct  stc_dstc_des01236
 Definition of Descriptor Group DES0 - DES3, DES6. More...
 
struct  stc_dstc_des012346
 Definition of Descriptor Group DES0 - DES4, DES6. More...
 
struct  stc_dstc_des012356
 Definition of Descriptor Group DES0 - DES3, DES5, DES6. More...
 
struct  stc_dstc_config
 DSTC configuration. More...
 
struct  stc_dstc_intern_data
 DSTC Intern Data. More...
 

Macros

#define DSTC_TRANSITION_TIMEOUT   100000u
 Timeout counter for DSTC mode transition. More...
 
#define DSTC_PCHK_CALC(x)
 Parity checksum for DES0 PCHKS bits. More...
 
#define DSTC_IRQ_NUMBER_ADC0_PRIO   110u
 DSTC interrupt numbers. More...
 
#define DSTC_IRQ_NUMBER_ADC0_SCAN   111u
 
#define DSTC_IRQ_NUMBER_ADC1_PRIO   112u
 
#define DSTC_IRQ_NUMBER_ADC1_SCAN   113u
 
#define DSTC_IRQ_NUMBER_ADC2_PRIO   114u
 
#define DSTC_IRQ_NUMBER_ADC2_SCAN   115u
 
#define DSTC_IRQ_NUMBER_BT0_IRQ0   16u
 
#define DSTC_IRQ_NUMBER_BT0_IRQ1   17u
 
#define DSTC_IRQ_NUMBER_BT10_IRQ0   148u
 
#define DSTC_IRQ_NUMBER_BT10_IRQ1   149u
 
#define DSTC_IRQ_NUMBER_BT11_IRQ0   150u
 
#define DSTC_IRQ_NUMBER_BT11_IRQ1   151u
 
#define DSTC_IRQ_NUMBER_BT12_IRQ0   152u
 
#define DSTC_IRQ_NUMBER_BT12_IRQ1   153u
 
#define DSTC_IRQ_NUMBER_BT13_IRQ0   154u
 
#define DSTC_IRQ_NUMBER_BT13_IRQ1   155u
 
#define DSTC_IRQ_NUMBER_BT14_IRQ0   156u
 
#define DSTC_IRQ_NUMBER_BT14_IRQ1   157u
 
#define DSTC_IRQ_NUMBER_BT15_IRQ0   158u
 
#define DSTC_IRQ_NUMBER_BT15_IRQ1   159u
 
#define DSTC_IRQ_NUMBER_BT1_IRQ0   18u
 
#define DSTC_IRQ_NUMBER_BT1_IRQ1   19u
 
#define DSTC_IRQ_NUMBER_BT2_IRQ0   20u
 
#define DSTC_IRQ_NUMBER_BT2_IRQ1   21u
 
#define DSTC_IRQ_NUMBER_BT3_IRQ0   22u
 
#define DSTC_IRQ_NUMBER_BT3_IRQ1   23u
 
#define DSTC_IRQ_NUMBER_BT4_IRQ0   24u
 
#define DSTC_IRQ_NUMBER_BT4_IRQ1   25u
 
#define DSTC_IRQ_NUMBER_BT5_IRQ0   26u
 
#define DSTC_IRQ_NUMBER_BT5_IRQ1   27u
 
#define DSTC_IRQ_NUMBER_BT6_IRQ0   28u
 
#define DSTC_IRQ_NUMBER_BT6_IRQ1   29u
 
#define DSTC_IRQ_NUMBER_BT7_IRQ0   30u
 
#define DSTC_IRQ_NUMBER_BT7_IRQ1   31u
 
#define DSTC_IRQ_NUMBER_BT8_IRQ0   144u
 
#define DSTC_IRQ_NUMBER_BT8_IRQ1   145u
 
#define DSTC_IRQ_NUMBER_BT9_IRQ0   146u
 
#define DSTC_IRQ_NUMBER_BT9_IRQ1   147u
 
#define DSTC_IRQ_NUMBER_EXTINT0   0u
 
#define DSTC_IRQ_NUMBER_EXTINT1   1u
 
#define DSTC_IRQ_NUMBER_EXTINT10   10u
 
#define DSTC_IRQ_NUMBER_EXTINT11   11u
 
#define DSTC_IRQ_NUMBER_EXTINT12   12u
 
#define DSTC_IRQ_NUMBER_EXTINT13   13u
 
#define DSTC_IRQ_NUMBER_EXTINT14   14u
 
#define DSTC_IRQ_NUMBER_EXTINT15   15u
 
#define DSTC_IRQ_NUMBER_EXTINT16   128u
 
#define DSTC_IRQ_NUMBER_EXTINT17   129u
 
#define DSTC_IRQ_NUMBER_EXTINT18   130u
 
#define DSTC_IRQ_NUMBER_EXTINT19   131u
 
#define DSTC_IRQ_NUMBER_EXTINT2   2u
 
#define DSTC_IRQ_NUMBER_EXTINT20   132u
 
#define DSTC_IRQ_NUMBER_EXTINT21   133u
 
#define DSTC_IRQ_NUMBER_EXTINT22   134u
 
#define DSTC_IRQ_NUMBER_EXTINT23   135u
 
#define DSTC_IRQ_NUMBER_EXTINT24   136u
 
#define DSTC_IRQ_NUMBER_EXTINT25   137u
 
#define DSTC_IRQ_NUMBER_EXTINT26   138u
 
#define DSTC_IRQ_NUMBER_EXTINT27   139u
 
#define DSTC_IRQ_NUMBER_EXTINT28   140u
 
#define DSTC_IRQ_NUMBER_EXTINT29   141u
 
#define DSTC_IRQ_NUMBER_EXTINT3   3u
 
#define DSTC_IRQ_NUMBER_EXTINT30   142u
 
#define DSTC_IRQ_NUMBER_EXTINT31   143u
 
#define DSTC_IRQ_NUMBER_EXTINT4   4u
 
#define DSTC_IRQ_NUMBER_EXTINT5   5u
 
#define DSTC_IRQ_NUMBER_EXTINT6   6u
 
#define DSTC_IRQ_NUMBER_EXTINT7   7u
 
#define DSTC_IRQ_NUMBER_EXTINT8   8u
 
#define DSTC_IRQ_NUMBER_EXTINT9   9u
 
#define DSTC_IRQ_NUMBER_MFS0_RX   89u
 
#define DSTC_IRQ_NUMBER_MFS0_TX   90u
 
#define DSTC_IRQ_NUMBER_MFS10_RX   198u
 
#define DSTC_IRQ_NUMBER_MFS10_TX   199u
 
#define DSTC_IRQ_NUMBER_MFS11_RX   200u
 
#define DSTC_IRQ_NUMBER_MFS11_TX   201u
 
#define DSTC_IRQ_NUMBER_MFS12_RX   209u
 
#define DSTC_IRQ_NUMBER_MFS12_TX   210u
 
#define DSTC_IRQ_NUMBER_MFS13_RX   211u
 
#define DSTC_IRQ_NUMBER_MFS13_TX   212u
 
#define DSTC_IRQ_NUMBER_MFS14_RX   213u
 
#define DSTC_IRQ_NUMBER_MFS14_TX   214u
 
#define DSTC_IRQ_NUMBER_MFS15_RX   215u
 
#define DSTC_IRQ_NUMBER_MFS15_TX   216u
 
#define DSTC_IRQ_NUMBER_MFS1_RX   91u
 
#define DSTC_IRQ_NUMBER_MFS1_TX   92u
 
#define DSTC_IRQ_NUMBER_MFS2_RX   93u
 
#define DSTC_IRQ_NUMBER_MFS2_TX   94u
 
#define DSTC_IRQ_NUMBER_MFS3_RX   95u
 
#define DSTC_IRQ_NUMBER_MFS3_TX   96u
 
#define DSTC_IRQ_NUMBER_MFS4_RX   97u
 
#define DSTC_IRQ_NUMBER_MFS4_TX   98u
 
#define DSTC_IRQ_NUMBER_MFS5_RX   99u
 
#define DSTC_IRQ_NUMBER_MFS5_TX   100u
 
#define DSTC_IRQ_NUMBER_MFS6_RX   101u
 
#define DSTC_IRQ_NUMBER_MFS6_TX   102u
 
#define DSTC_IRQ_NUMBER_MFS7_RX   103u
 
#define DSTC_IRQ_NUMBER_MFS7_TX   104u
 
#define DSTC_IRQ_NUMBER_MFS8_RX   194u
 
#define DSTC_IRQ_NUMBER_MFS8_TX   195u
 
#define DSTC_IRQ_NUMBER_MFS9_RX   196u
 
#define DSTC_IRQ_NUMBER_MFS9_TX   197u
 
#define DSTC_IRQ_NUMBER_MFT0_FRT0_PEAK   35u
 
#define DSTC_IRQ_NUMBER_MFT0_FRT0_ZERO   38u
 
#define DSTC_IRQ_NUMBER_MFT0_FRT1_PEAK   36u
 
#define DSTC_IRQ_NUMBER_MFT0_FRT1_ZERO   39u
 
#define DSTC_IRQ_NUMBER_MFT0_FRT2_PEAK   37u
 
#define DSTC_IRQ_NUMBER_MFT0_FRT2_ZERO   40u
 
#define DSTC_IRQ_NUMBER_MFT0_ICU0   41u
 
#define DSTC_IRQ_NUMBER_MFT0_ICU1   42u
 
#define DSTC_IRQ_NUMBER_MFT0_ICU2   43u
 
#define DSTC_IRQ_NUMBER_MFT0_ICU3   44u
 
#define DSTC_IRQ_NUMBER_MFT0_OCU0   45u
 
#define DSTC_IRQ_NUMBER_MFT0_OCU1   46u
 
#define DSTC_IRQ_NUMBER_MFT0_OCU2   47u
 
#define DSTC_IRQ_NUMBER_MFT0_OCU3   48u
 
#define DSTC_IRQ_NUMBER_MFT0_OCU4   49u
 
#define DSTC_IRQ_NUMBER_MFT0_OCU5   50u
 
#define DSTC_IRQ_NUMBER_MFT0_WFG10   32u
 
#define DSTC_IRQ_NUMBER_MFT0_WFG32   33u
 
#define DSTC_IRQ_NUMBER_MFT0_WFG54   34u
 
#define DSTC_IRQ_NUMBER_MFT1_FRT0_PEAK   54u
 
#define DSTC_IRQ_NUMBER_MFT1_FRT0_ZERO   57u
 
#define DSTC_IRQ_NUMBER_MFT1_FRT1_PEAK   55u
 
#define DSTC_IRQ_NUMBER_MFT1_FRT1_ZERO   58u
 
#define DSTC_IRQ_NUMBER_MFT1_FRT2_PEAK   56u
 
#define DSTC_IRQ_NUMBER_MFT1_FRT2_ZERO   59u
 
#define DSTC_IRQ_NUMBER_MFT1_ICU0   60u
 
#define DSTC_IRQ_NUMBER_MFT1_ICU1   61u
 
#define DSTC_IRQ_NUMBER_MFT1_ICU2   62u
 
#define DSTC_IRQ_NUMBER_MFT1_ICU3   63u
 
#define DSTC_IRQ_NUMBER_MFT1_OCU0   64u
 
#define DSTC_IRQ_NUMBER_MFT1_OCU1   65u
 
#define DSTC_IRQ_NUMBER_MFT1_OCU2   66u
 
#define DSTC_IRQ_NUMBER_MFT1_OCU3   67u
 
#define DSTC_IRQ_NUMBER_MFT1_OCU4   68u
 
#define DSTC_IRQ_NUMBER_MFT1_OCU5   69u
 
#define DSTC_IRQ_NUMBER_MFT1_WFG10   51u
 
#define DSTC_IRQ_NUMBER_MFT1_WFG32   52u
 
#define DSTC_IRQ_NUMBER_MFT1_WFG54   53u
 
#define DSTC_IRQ_NUMBER_MFT2_FRT0_PEAK   163u
 
#define DSTC_IRQ_NUMBER_MFT2_FRT0_ZERO   166u
 
#define DSTC_IRQ_NUMBER_MFT2_FRT1_PEAK   164u
 
#define DSTC_IRQ_NUMBER_MFT2_FRT1_ZERO   167u
 
#define DSTC_IRQ_NUMBER_MFT2_FRT2_PEAK   165u
 
#define DSTC_IRQ_NUMBER_MFT2_FRT2_ZERO   168u
 
#define DSTC_IRQ_NUMBER_MFT2_ICU0   169u
 
#define DSTC_IRQ_NUMBER_MFT2_ICU1   170u
 
#define DSTC_IRQ_NUMBER_MFT2_ICU2   171u
 
#define DSTC_IRQ_NUMBER_MFT2_ICU3   172u
 
#define DSTC_IRQ_NUMBER_MFT2_OCU0   173u
 
#define DSTC_IRQ_NUMBER_MFT2_OCU1   174u
 
#define DSTC_IRQ_NUMBER_MFT2_OCU2   175u
 
#define DSTC_IRQ_NUMBER_MFT2_OCU3   176u
 
#define DSTC_IRQ_NUMBER_MFT2_OCU4   177u
 
#define DSTC_IRQ_NUMBER_MFT2_OCU5   178u
 
#define DSTC_IRQ_NUMBER_MFT2_WFG10   160u
 
#define DSTC_IRQ_NUMBER_MFT2_WFG32   161u
 
#define DSTC_IRQ_NUMBER_MFT2_WFG54   162u
 
#define DSTC_IRQ_NUMBER_PPG0   70u
 
#define DSTC_IRQ_NUMBER_PPG10   74u
 
#define DSTC_IRQ_NUMBER_PPG12   75u
 
#define DSTC_IRQ_NUMBER_PPG16   179u
 
#define DSTC_IRQ_NUMBER_PPG18   180u
 
#define DSTC_IRQ_NUMBER_PPG2   71u
 
#define DSTC_IRQ_NUMBER_PPG20   181u
 
#define DSTC_IRQ_NUMBER_PPG4   72u
 
#define DSTC_IRQ_NUMBER_PPG8   73u
 
#define DSTC_IRQ_NUMBER_QPRC0_COUNT_INVERSION   79u
 
#define DSTC_IRQ_NUMBER_QPRC0_OUT_OF_RANGE   80u
 
#define DSTC_IRQ_NUMBER_QPRC0_PC_MATCH   76u
 
#define DSTC_IRQ_NUMBER_QPRC0_PC_MATCH_RC_MATCH   81u
 
#define DSTC_IRQ_NUMBER_QPRC0_PC_RC_MATCH   77u
 
#define DSTC_IRQ_NUMBER_QPRC0_UFL_OFL_Z   78u
 
#define DSTC_IRQ_NUMBER_QPRC1_COUNT_INVERSION   85u
 
#define DSTC_IRQ_NUMBER_QPRC1_OUT_OF_RANGE   86u
 
#define DSTC_IRQ_NUMBER_QPRC1_PC_MATCH   82u
 
#define DSTC_IRQ_NUMBER_QPRC1_PC_MATCH_RC_MATCH   87u
 
#define DSTC_IRQ_NUMBER_QPRC1_PC_RC_MATCH   83u
 
#define DSTC_IRQ_NUMBER_QPRC1_UFL_OFL_Z   84u
 
#define DSTC_IRQ_NUMBER_QPRC2_COUNT_INVERSION   185u
 
#define DSTC_IRQ_NUMBER_QPRC2_OUT_OF_RANGE   186u
 
#define DSTC_IRQ_NUMBER_QPRC2_PC_MATCH   182u
 
#define DSTC_IRQ_NUMBER_QPRC2_PC_MATCH_RC_MATCH   187u
 
#define DSTC_IRQ_NUMBER_QPRC2_PC_RC_MATCH   183u
 
#define DSTC_IRQ_NUMBER_QPRC2_UFL_OFL_Z   184u
 
#define DSTC_IRQ_NUMBER_QPRC3_COUNT_INVERSION   191u
 
#define DSTC_IRQ_NUMBER_QPRC3_OUT_OF_RANGE   192u
 
#define DSTC_IRQ_NUMBER_QPRC3_PC_MATCH   188u
 
#define DSTC_IRQ_NUMBER_QPRC3_PC_MATCH_RC_MATCH   193u
 
#define DSTC_IRQ_NUMBER_QPRC3_PC_RC_MATCH   189u
 
#define DSTC_IRQ_NUMBER_QPRC3_UFL_OFL_Z   190u
 
#define DSTC_IRQ_NUMBER_USB0_EP1   105u
 
#define DSTC_IRQ_NUMBER_USB0_EP2   106u
 
#define DSTC_IRQ_NUMBER_USB0_EP3   107u
 
#define DSTC_IRQ_NUMBER_USB0_EP4   108u
 
#define DSTC_IRQ_NUMBER_USB0_EP5   109u
 
#define DSTC_IRQ_NUMBER_USB1_EP1   202u
 
#define DSTC_IRQ_NUMBER_USB1_EP2   203u
 
#define DSTC_IRQ_NUMBER_USB1_EP3   204u
 
#define DSTC_IRQ_NUMBER_USB1_EP4   205u
 
#define DSTC_IRQ_NUMBER_USB1_EP5   206u
 
#define DSTC_IRQ_NUMBER_WC   88u
 

Typedefs

typedef enum en_dstc_cmd en_dstc_cmd_t
 DSTC Commands. More...
 
typedef enum en_dstc_swpr en_dstc_swpr_t
 Software Transfer Priority. More...
 
typedef enum en_dstc_est_error en_dstc_est_error_t
 MONERS EST Error Code. More...
 
typedef void(* func_ptr_dstc_args_t )(en_dstc_est_error_t enEstError, uint16_t u16ErrorChannel, uint16_t u16ErrorDesPointer, boolean_t bSoftwareError, boolean_t bDoubleError, boolean_t bErrorStop)
 Error Status Callback. More...
 
typedef struct stc_dstc_dreqenb stc_dstc_dreqenb_t
 DREQENB structure. More...
 
typedef struct stc_dstc_hwint stc_dstc_hwint_t
 HWINT structure. More...
 
typedef struct stc_dstc_hwintclr stc_dstc_hwintclr_t
 HWINTCLR structure. More...
 
typedef struct stc_dstc_dqmsk stc_dstc_dqmsk_t
 DQMSK structure. More...
 
typedef struct stc_dstc_dqmskclr stc_dstc_dqmskclr_t
 DQMSKCLR structure. More...
 
typedef struct stc_dstc_des0 stc_dstc_des0_t
 Definition of Descriptor 0 (DES0 - Transfer Basic Setting) More...
 
typedef struct stc_dstc_des1_mode0 stc_dstc_des1_mode0_t
 Definition of Descriptor 1 (DES1 - Number of Transfers) in Mode 0. More...
 
typedef struct stc_dstc_des1_mode1 stc_dstc_des1_mode1_t
 Definition of Descriptor 1 (DES1 - Number of Transfers) in Mode 1. More...
 
typedef struct stc_dstc_des0123 stc_dstc_des0123_t
 Definition of Descriptor Group DES0 - DES3. More...
 
typedef struct stc_dstc_des01234 stc_dstc_des01234_t
 Definition of Descriptor Group DES0 - DES4. More...
 
typedef struct stc_dstc_des012345 stc_dstc_des012345_t
 Definition of Descriptor Group DES0 - DES5. More...
 
typedef struct stc_dstc_des0123456 stc_dstc_des0123456_t
 Definition of Descriptor Group DES0 - DES6. More...
 
typedef struct stc_dstc_des01235 stc_dstc_des01235_t
 Definition of Descriptor Group DES0 - DES3, DES5. More...
 
typedef struct stc_dstc_des01236 stc_dstc_des01236_t
 Definition of Descriptor Group DES0 - DES3, DES6. More...
 
typedef struct stc_dstc_des012346 stc_dstc_des012346_t
 Definition of Descriptor Group DES0 - DES4, DES6. More...
 
typedef struct stc_dstc_des012356 stc_dstc_des012456_t
 Definition of Descriptor Group DES0 - DES3, DES5, DES6. More...
 
typedef struct stc_dstc_config stc_dstc_config_t
 DSTC configuration. More...
 
typedef struct stc_dstc_intern_data stc_dstc_intern_data_t
 DSTC Intern Data. More...
 

Enumerations

enum  en_dstc_cmd {
  CmdStandyRelease = 0u,
  CmdStandyTransition = 1u,
  CmdSwclr = 2u,
  CmdErclr = 3u,
  CmdRbclr = 4u,
  CmdMkclr = 5u
}
 DSTC Commands. More...
 
enum  en_dstc_swpr {
  PriorityHighest = 0u,
  Priority1_2 = 1u,
  Priority1_3 = 2u,
  Priority1_7 = 3u,
  Priority1_15 = 4u,
  Priority1_31 = 5u,
  Priority1_63 = 6u,
  PriorityLowest = 7u
}
 Software Transfer Priority. More...
 
enum  en_dstc_est_error {
  NoError = 0u,
  SourceAccessError = 1u,
  DestinationAccessError = 2u,
  ForcedTransferStop = 3u,
  DesAccessError = 4u,
  DesOpenError = 5u,
  UnknownError = 6u
}
 MONERS EST Error Code. More...
 

Functions

void Dstc_IrqHandler (void)
 Interrupt Service Routine of DSTC. More...
 
en_result_t Dstc_ReleaseStandBy (void)
 Release DSTC from Standby State. More...
 
en_result_t Dstc_Init (stc_dstc_config_t *pstcConfig)
 Initializes the DSTC according the Configuration. More...
 
en_result_t Dstc_DeInit (void)
 De-Initializes the the DSTC. More...
 
en_result_t Dstc_SetHwdesp (uint8_t u8Channel, uint16_t u16HwDesp)
 Initializes a DSTC channel. More...
 
uint16_t Dstc_ReadHwdesp (uint8_t u8Channel)
 Read the HWDESP Address Offset of a Channel. More...
 
en_result_t Dstc_SetCommand (en_dstc_cmd_t enCommand)
 Set a Command to CMD Register. More...
 
en_result_t Dstc_SwTrigger (uint16_t u16SwDesPointer)
 Set SWDESP offset and trigger SW transfer. More...
 
en_result_t Dstc_SwTrqansferStartStatus (void)
 Check Software Trigger Start State. More...
 
en_result_t Dstc_SetDreqenb (stc_dstc_dreqenb_t *pstcDreqenb)
 Set DREQENB Register. More...
 
en_result_t Dstc_ReadDreqenb (stc_dstc_dreqenb_t *pstcDreqenb)
 Read DREQENB Register. More...
 
en_result_t Dstc_SetDreqenbBit (uint8_t u8BitPos)
 Set DREQENB Register Bit. More...
 
en_result_t Dstc_ClearDreqenbBit (uint8_t u8BitPos)
 Clear DREQENB Register Bit. More...
 
en_result_t Dstc_ReadHwint (stc_dstc_hwint_t *pstcHwint)
 Read HWINT Register. More...
 
en_result_t Dstc_SetHwintclr (stc_dstc_hwintclr_t *pstcHwintclr)
 Set HWINTCLR Register. More...
 
boolean_t Dstc_ReadHwintBit (uint8_t u8BitPos)
 Read HWINT Register Bit. More...
 
en_result_t Dstc_SetHwintclrBit (uint8_t u8BitPos)
 Set HWINTCLR Register Bit. More...
 
en_result_t Dstc_ReadDqmsk (stc_dstc_dqmsk_t *pstcDqmsk)
 Read DQMSK Register. More...
 
en_result_t Dstc_SetDqmskclr (stc_dstc_dqmskclr_t *pstcDqmskclr)
 Set DQMSKCLR Register. More...
 
en_result_t Dstc_SetDqmskclrBit (uint8_t u8BitPos)
 Set DQMSKCLR Register Bit. More...
 
void Dstc_AdcIrqHandler (uint8_t u8IrqChannel0, uint8_t u8IrqChannel1)
 DSTC Peripheral Interrupt Service Routines. More...
 
void Dstc_BtIrqHandler (uint8_t u8IrqChannel0, uint8_t u8IrqChannel1)
 BT. More...
 
void Dstc_ExintIrqHandler (uint8_t u8IrqChannel)
 EXT INT. More...
 
void Dstc_MfsRxIrqHandler (uint8_t u8IrqChannel)
 MFS. More...
 
void Dstc_MfsTxIrqHandler (uint8_t u8IrqChannel)
 
void Dstc_MftFrtPeakIrqHandler (uint8_t u8IrqChannel)
 MFT FRT. More...
 
void Dstc_MftFrtZeroIrqHandler (uint8_t u8IrqChannel)
 
void Dstc_MftOcuIrqHandler (uint8_t u8IrqChannel)
 
void Dstc_MftWfgIrqHandler (uint8_t u8IrqChannel)
 
void Dstc_MftIcuIrqHandler (uint8_t u8IrqChannel)
 
void Dstc_PpgIrqHandler (uint8_t u8IrqChannel)
 PPG. More...
 
void Dstc_QprcIrqHandler (uint8_t u8IrqChannel)
 QPRC. More...
 
void Dstc_WcIrqHandler (void)
 

Variables

static stc_dstc_intern_data_t stcDstcInternData
 

Detailed Description

Provided functions of DSTC:

Dstc_ReleaseStandBy() "wakes up" the DSTC from standby mode. Dsct_Init() initializes the DSTC with the user configuration (Priority Settings, Pointers to (Error) Callback Functions, etc.); Dstc_ReleaseStandBy() is called automatically via initialization. Dstc_ReadHwdesp() returns the DES area start address of a dedicated channel. Dstc_SetCommand() sets a command to the CMD register. Dstc_SwTrigger() performs a software trigger for a configured transfer. Dstc_SwTrqansferStartStatus() returns the status of a triggered Software transfer. Dstc_SetDreqenb() sets the DRQENB register set via the structure stc_dstc_dreqenb_t. Dstc_ReadDreqenb() returns the value of the DRQENB register to the given structure of the type of stc_dstc_dreqenb_t. Dstc_SetDreqenbBit() sets a bit in the 256-Bitfield of DRQENB register. Dstc_ClearDreqenbBit() clears a bit in the 256-Bitfield of DRQENB register. Dstc_ReadHwint() returns the contents of the HWINT register into a strucutre of the type of stc_dstc_hwint_t. Dstc_SetHwintclr() sets clear bits in the HWINTCLR register via the structure of the type of stc_dstc_hwintclr_t. Dstc_SetHwintclrbBit() sets clear bits in the 256-Bitfield of the HWINTCLR register. Dstc_ReadDqmsk() reads the contents of the DQMSK register into a structure of the type of stc_dstc_dqmsk_t. Dstc_SetDqmskclr() sets clear bits in the DQMSKCLR register via the structure of the type of stc_dstc_dqmskclr_t. Dstc_SetDqmskclrbBit() sets a clear bit in the 256-Bitfield of the DQMSKCLR register.

In dstc.h there are predefined DES structure types for every combination of the descriptors. Note that for DES1 two different structures are existing for mode0 and mode1. The user should use these structures within an enclosing structure, so that the descriptors are located on consecutive addresses. The address of this structure then should be used for stc_dstc_config_t::u32Destp.

Example:

struct stc_dstc_des_area
{
  stc_dstc_des01236_t   stcDesList0;
  stc_dstc_des0123_t    stcDesList1;
  stc_dstc_des0123_t    stcDesList2;
  stc_dstc_des0123456_t stcDesList3;
  . . .
};

Macro Definition Documentation

#define DSTC_IRQ_NUMBER_ADC0_PRIO   110u

DSTC interrupt numbers.

Definition at line 154 of file dstc.h.

Referenced by Dstc_AdcIrqHandler().

#define DSTC_IRQ_NUMBER_ADC0_SCAN   111u

Definition at line 155 of file dstc.h.

Referenced by Dstc_AdcIrqHandler().

#define DSTC_IRQ_NUMBER_ADC1_PRIO   112u

Definition at line 156 of file dstc.h.

Referenced by Dstc_AdcIrqHandler().

#define DSTC_IRQ_NUMBER_ADC1_SCAN   113u

Definition at line 157 of file dstc.h.

Referenced by Dstc_AdcIrqHandler().

#define DSTC_IRQ_NUMBER_ADC2_PRIO   114u

Definition at line 158 of file dstc.h.

Referenced by Dstc_AdcIrqHandler().

#define DSTC_IRQ_NUMBER_ADC2_SCAN   115u

Definition at line 159 of file dstc.h.

Referenced by Dstc_AdcIrqHandler().

#define DSTC_IRQ_NUMBER_BT0_IRQ0   16u

Definition at line 160 of file dstc.h.

Referenced by Dstc_BtIrqHandler().

#define DSTC_IRQ_NUMBER_BT0_IRQ1   17u

Definition at line 161 of file dstc.h.

Referenced by Dstc_BtIrqHandler().

#define DSTC_IRQ_NUMBER_BT10_IRQ0   148u

Definition at line 162 of file dstc.h.

Referenced by Dstc_BtIrqHandler().

#define DSTC_IRQ_NUMBER_BT10_IRQ1   149u

Definition at line 163 of file dstc.h.

Referenced by Dstc_BtIrqHandler().

#define DSTC_IRQ_NUMBER_BT11_IRQ0   150u

Definition at line 164 of file dstc.h.

Referenced by Dstc_BtIrqHandler().

#define DSTC_IRQ_NUMBER_BT11_IRQ1   151u

Definition at line 165 of file dstc.h.

Referenced by Dstc_BtIrqHandler().

#define DSTC_IRQ_NUMBER_BT12_IRQ0   152u

Definition at line 166 of file dstc.h.

Referenced by Dstc_BtIrqHandler().

#define DSTC_IRQ_NUMBER_BT12_IRQ1   153u

Definition at line 167 of file dstc.h.

Referenced by Dstc_BtIrqHandler().

#define DSTC_IRQ_NUMBER_BT13_IRQ0   154u

Definition at line 168 of file dstc.h.

Referenced by Dstc_BtIrqHandler().

#define DSTC_IRQ_NUMBER_BT13_IRQ1   155u

Definition at line 169 of file dstc.h.

Referenced by Dstc_BtIrqHandler().

#define DSTC_IRQ_NUMBER_BT14_IRQ0   156u

Definition at line 170 of file dstc.h.

Referenced by Dstc_BtIrqHandler().

#define DSTC_IRQ_NUMBER_BT14_IRQ1   157u

Definition at line 171 of file dstc.h.

Referenced by Dstc_BtIrqHandler().

#define DSTC_IRQ_NUMBER_BT15_IRQ0   158u

Definition at line 172 of file dstc.h.

Referenced by Dstc_BtIrqHandler().

#define DSTC_IRQ_NUMBER_BT15_IRQ1   159u

Definition at line 173 of file dstc.h.

Referenced by Dstc_BtIrqHandler().

#define DSTC_IRQ_NUMBER_BT1_IRQ0   18u

Definition at line 174 of file dstc.h.

Referenced by Dstc_BtIrqHandler().

#define DSTC_IRQ_NUMBER_BT1_IRQ1   19u

Definition at line 175 of file dstc.h.

Referenced by Dstc_BtIrqHandler().

#define DSTC_IRQ_NUMBER_BT2_IRQ0   20u

Definition at line 176 of file dstc.h.

Referenced by Dstc_BtIrqHandler().

#define DSTC_IRQ_NUMBER_BT2_IRQ1   21u

Definition at line 177 of file dstc.h.

Referenced by Dstc_BtIrqHandler().

#define DSTC_IRQ_NUMBER_BT3_IRQ0   22u

Definition at line 178 of file dstc.h.

Referenced by Dstc_BtIrqHandler().

#define DSTC_IRQ_NUMBER_BT3_IRQ1   23u

Definition at line 179 of file dstc.h.

Referenced by Dstc_BtIrqHandler().

#define DSTC_IRQ_NUMBER_BT4_IRQ0   24u

Definition at line 180 of file dstc.h.

Referenced by Dstc_BtIrqHandler().

#define DSTC_IRQ_NUMBER_BT4_IRQ1   25u

Definition at line 181 of file dstc.h.

Referenced by Dstc_BtIrqHandler().

#define DSTC_IRQ_NUMBER_BT5_IRQ0   26u

Definition at line 182 of file dstc.h.

Referenced by Dstc_BtIrqHandler().

#define DSTC_IRQ_NUMBER_BT5_IRQ1   27u

Definition at line 183 of file dstc.h.

Referenced by Dstc_BtIrqHandler().

#define DSTC_IRQ_NUMBER_BT6_IRQ0   28u

Definition at line 184 of file dstc.h.

Referenced by Dstc_BtIrqHandler().

#define DSTC_IRQ_NUMBER_BT6_IRQ1   29u

Definition at line 185 of file dstc.h.

Referenced by Dstc_BtIrqHandler().

#define DSTC_IRQ_NUMBER_BT7_IRQ0   30u

Definition at line 186 of file dstc.h.

Referenced by Dstc_BtIrqHandler().

#define DSTC_IRQ_NUMBER_BT7_IRQ1   31u

Definition at line 187 of file dstc.h.

Referenced by Dstc_BtIrqHandler().

#define DSTC_IRQ_NUMBER_BT8_IRQ0   144u

Definition at line 188 of file dstc.h.

Referenced by Dstc_BtIrqHandler().

#define DSTC_IRQ_NUMBER_BT8_IRQ1   145u

Definition at line 189 of file dstc.h.

Referenced by Dstc_BtIrqHandler().

#define DSTC_IRQ_NUMBER_BT9_IRQ0   146u

Definition at line 190 of file dstc.h.

Referenced by Dstc_BtIrqHandler().

#define DSTC_IRQ_NUMBER_BT9_IRQ1   147u

Definition at line 191 of file dstc.h.

Referenced by Dstc_BtIrqHandler().

#define DSTC_IRQ_NUMBER_EXTINT0   0u

Definition at line 192 of file dstc.h.

Referenced by Dstc_ExintIrqHandler().

#define DSTC_IRQ_NUMBER_EXTINT1   1u

Definition at line 193 of file dstc.h.

Referenced by Dstc_ExintIrqHandler().

#define DSTC_IRQ_NUMBER_EXTINT10   10u

Definition at line 194 of file dstc.h.

Referenced by Dstc_ExintIrqHandler().

#define DSTC_IRQ_NUMBER_EXTINT11   11u

Definition at line 195 of file dstc.h.

Referenced by Dstc_ExintIrqHandler().

#define DSTC_IRQ_NUMBER_EXTINT12   12u

Definition at line 196 of file dstc.h.

Referenced by Dstc_ExintIrqHandler().

#define DSTC_IRQ_NUMBER_EXTINT13   13u

Definition at line 197 of file dstc.h.

Referenced by Dstc_ExintIrqHandler().

#define DSTC_IRQ_NUMBER_EXTINT14   14u

Definition at line 198 of file dstc.h.

Referenced by Dstc_ExintIrqHandler().

#define DSTC_IRQ_NUMBER_EXTINT15   15u

Definition at line 199 of file dstc.h.

Referenced by Dstc_ExintIrqHandler().

#define DSTC_IRQ_NUMBER_EXTINT16   128u

Definition at line 200 of file dstc.h.

Referenced by Dstc_ExintIrqHandler().

#define DSTC_IRQ_NUMBER_EXTINT17   129u

Definition at line 201 of file dstc.h.

Referenced by Dstc_ExintIrqHandler().

#define DSTC_IRQ_NUMBER_EXTINT18   130u

Definition at line 202 of file dstc.h.

Referenced by Dstc_ExintIrqHandler().

#define DSTC_IRQ_NUMBER_EXTINT19   131u

Definition at line 203 of file dstc.h.

Referenced by Dstc_ExintIrqHandler().

#define DSTC_IRQ_NUMBER_EXTINT2   2u

Definition at line 204 of file dstc.h.

Referenced by Dstc_ExintIrqHandler().

#define DSTC_IRQ_NUMBER_EXTINT20   132u

Definition at line 205 of file dstc.h.

Referenced by Dstc_ExintIrqHandler().

#define DSTC_IRQ_NUMBER_EXTINT21   133u

Definition at line 206 of file dstc.h.

Referenced by Dstc_ExintIrqHandler().

#define DSTC_IRQ_NUMBER_EXTINT22   134u

Definition at line 207 of file dstc.h.

Referenced by Dstc_ExintIrqHandler().

#define DSTC_IRQ_NUMBER_EXTINT23   135u

Definition at line 208 of file dstc.h.

Referenced by Dstc_ExintIrqHandler().

#define DSTC_IRQ_NUMBER_EXTINT24   136u

Definition at line 209 of file dstc.h.

Referenced by Dstc_ExintIrqHandler().

#define DSTC_IRQ_NUMBER_EXTINT25   137u

Definition at line 210 of file dstc.h.

Referenced by Dstc_ExintIrqHandler().

#define DSTC_IRQ_NUMBER_EXTINT26   138u

Definition at line 211 of file dstc.h.

Referenced by Dstc_ExintIrqHandler().

#define DSTC_IRQ_NUMBER_EXTINT27   139u

Definition at line 212 of file dstc.h.

Referenced by Dstc_ExintIrqHandler().

#define DSTC_IRQ_NUMBER_EXTINT28   140u

Definition at line 213 of file dstc.h.

Referenced by Dstc_ExintIrqHandler().

#define DSTC_IRQ_NUMBER_EXTINT29   141u

Definition at line 214 of file dstc.h.

Referenced by Dstc_ExintIrqHandler().

#define DSTC_IRQ_NUMBER_EXTINT3   3u

Definition at line 215 of file dstc.h.

Referenced by Dstc_ExintIrqHandler().

#define DSTC_IRQ_NUMBER_EXTINT30   142u

Definition at line 216 of file dstc.h.

Referenced by Dstc_ExintIrqHandler().

#define DSTC_IRQ_NUMBER_EXTINT31   143u

Definition at line 217 of file dstc.h.

Referenced by Dstc_ExintIrqHandler().

#define DSTC_IRQ_NUMBER_EXTINT4   4u

Definition at line 218 of file dstc.h.

Referenced by Dstc_ExintIrqHandler().

#define DSTC_IRQ_NUMBER_EXTINT5   5u

Definition at line 219 of file dstc.h.

Referenced by Dstc_ExintIrqHandler().

#define DSTC_IRQ_NUMBER_EXTINT6   6u

Definition at line 220 of file dstc.h.

Referenced by Dstc_ExintIrqHandler().

#define DSTC_IRQ_NUMBER_EXTINT7   7u

Definition at line 221 of file dstc.h.

Referenced by Dstc_ExintIrqHandler().

#define DSTC_IRQ_NUMBER_EXTINT8   8u

Definition at line 222 of file dstc.h.

Referenced by Dstc_ExintIrqHandler().

#define DSTC_IRQ_NUMBER_EXTINT9   9u

Definition at line 223 of file dstc.h.

Referenced by Dstc_ExintIrqHandler().

#define DSTC_IRQ_NUMBER_MFS0_RX   89u

Definition at line 224 of file dstc.h.

Referenced by Dstc_MfsRxIrqHandler(), and Dstc_MfsTxIrqHandler().

#define DSTC_IRQ_NUMBER_MFS0_TX   90u

Definition at line 225 of file dstc.h.

#define DSTC_IRQ_NUMBER_MFS10_RX   198u

Definition at line 226 of file dstc.h.

Referenced by Dstc_MfsRxIrqHandler(), and Dstc_MfsTxIrqHandler().

#define DSTC_IRQ_NUMBER_MFS10_TX   199u

Definition at line 227 of file dstc.h.

#define DSTC_IRQ_NUMBER_MFS11_RX   200u

Definition at line 228 of file dstc.h.

Referenced by Dstc_MfsRxIrqHandler(), and Dstc_MfsTxIrqHandler().

#define DSTC_IRQ_NUMBER_MFS11_TX   201u

Definition at line 229 of file dstc.h.

#define DSTC_IRQ_NUMBER_MFS12_RX   209u

Definition at line 230 of file dstc.h.

Referenced by Dstc_MfsRxIrqHandler(), and Dstc_MfsTxIrqHandler().

#define DSTC_IRQ_NUMBER_MFS12_TX   210u

Definition at line 231 of file dstc.h.

#define DSTC_IRQ_NUMBER_MFS13_RX   211u

Definition at line 232 of file dstc.h.

Referenced by Dstc_MfsRxIrqHandler(), and Dstc_MfsTxIrqHandler().

#define DSTC_IRQ_NUMBER_MFS13_TX   212u

Definition at line 233 of file dstc.h.

#define DSTC_IRQ_NUMBER_MFS14_RX   213u

Definition at line 234 of file dstc.h.

Referenced by Dstc_MfsRxIrqHandler(), and Dstc_MfsTxIrqHandler().

#define DSTC_IRQ_NUMBER_MFS14_TX   214u

Definition at line 235 of file dstc.h.

#define DSTC_IRQ_NUMBER_MFS15_RX   215u

Definition at line 236 of file dstc.h.

Referenced by Dstc_MfsRxIrqHandler(), and Dstc_MfsTxIrqHandler().

#define DSTC_IRQ_NUMBER_MFS15_TX   216u

Definition at line 237 of file dstc.h.

#define DSTC_IRQ_NUMBER_MFS1_RX   91u

Definition at line 238 of file dstc.h.

Referenced by Dstc_MfsRxIrqHandler(), and Dstc_MfsTxIrqHandler().

#define DSTC_IRQ_NUMBER_MFS1_TX   92u

Definition at line 239 of file dstc.h.

#define DSTC_IRQ_NUMBER_MFS2_RX   93u

Definition at line 240 of file dstc.h.

Referenced by Dstc_MfsRxIrqHandler(), and Dstc_MfsTxIrqHandler().

#define DSTC_IRQ_NUMBER_MFS2_TX   94u

Definition at line 241 of file dstc.h.

#define DSTC_IRQ_NUMBER_MFS3_RX   95u

Definition at line 242 of file dstc.h.

Referenced by Dstc_MfsRxIrqHandler(), and Dstc_MfsTxIrqHandler().

#define DSTC_IRQ_NUMBER_MFS3_TX   96u

Definition at line 243 of file dstc.h.

#define DSTC_IRQ_NUMBER_MFS4_RX   97u

Definition at line 244 of file dstc.h.

Referenced by Dstc_MfsRxIrqHandler(), and Dstc_MfsTxIrqHandler().

#define DSTC_IRQ_NUMBER_MFS4_TX   98u

Definition at line 245 of file dstc.h.

#define DSTC_IRQ_NUMBER_MFS5_RX   99u

Definition at line 246 of file dstc.h.

Referenced by Dstc_MfsRxIrqHandler(), and Dstc_MfsTxIrqHandler().

#define DSTC_IRQ_NUMBER_MFS5_TX   100u

Definition at line 247 of file dstc.h.

#define DSTC_IRQ_NUMBER_MFS6_RX   101u

Definition at line 248 of file dstc.h.

Referenced by Dstc_MfsRxIrqHandler(), and Dstc_MfsTxIrqHandler().

#define DSTC_IRQ_NUMBER_MFS6_TX   102u

Definition at line 249 of file dstc.h.

#define DSTC_IRQ_NUMBER_MFS7_RX   103u

Definition at line 250 of file dstc.h.

Referenced by Dstc_MfsRxIrqHandler(), and Dstc_MfsTxIrqHandler().

#define DSTC_IRQ_NUMBER_MFS7_TX   104u

Definition at line 251 of file dstc.h.

#define DSTC_IRQ_NUMBER_MFS8_RX   194u

Definition at line 252 of file dstc.h.

Referenced by Dstc_MfsRxIrqHandler(), and Dstc_MfsTxIrqHandler().

#define DSTC_IRQ_NUMBER_MFS8_TX   195u

Definition at line 253 of file dstc.h.

#define DSTC_IRQ_NUMBER_MFS9_RX   196u

Definition at line 254 of file dstc.h.

Referenced by Dstc_MfsRxIrqHandler(), and Dstc_MfsTxIrqHandler().

#define DSTC_IRQ_NUMBER_MFS9_TX   197u

Definition at line 255 of file dstc.h.

#define DSTC_IRQ_NUMBER_MFT0_FRT0_PEAK   35u

Definition at line 256 of file dstc.h.

Referenced by Dstc_MftFrtPeakIrqHandler().

#define DSTC_IRQ_NUMBER_MFT0_FRT0_ZERO   38u

Definition at line 257 of file dstc.h.

Referenced by Dstc_MftFrtZeroIrqHandler().

#define DSTC_IRQ_NUMBER_MFT0_FRT1_PEAK   36u

Definition at line 258 of file dstc.h.

Referenced by Dstc_MftFrtPeakIrqHandler().

#define DSTC_IRQ_NUMBER_MFT0_FRT1_ZERO   39u

Definition at line 259 of file dstc.h.

Referenced by Dstc_MftFrtZeroIrqHandler().

#define DSTC_IRQ_NUMBER_MFT0_FRT2_PEAK   37u

Definition at line 260 of file dstc.h.

Referenced by Dstc_MftFrtPeakIrqHandler().

#define DSTC_IRQ_NUMBER_MFT0_FRT2_ZERO   40u

Definition at line 261 of file dstc.h.

Referenced by Dstc_MftFrtZeroIrqHandler().

#define DSTC_IRQ_NUMBER_MFT0_ICU0   41u

Definition at line 262 of file dstc.h.

Referenced by Dstc_MftIcuIrqHandler().

#define DSTC_IRQ_NUMBER_MFT0_ICU1   42u

Definition at line 263 of file dstc.h.

Referenced by Dstc_MftIcuIrqHandler().

#define DSTC_IRQ_NUMBER_MFT0_ICU2   43u

Definition at line 264 of file dstc.h.

Referenced by Dstc_MftIcuIrqHandler().

#define DSTC_IRQ_NUMBER_MFT0_ICU3   44u

Definition at line 265 of file dstc.h.

Referenced by Dstc_MftIcuIrqHandler().

#define DSTC_IRQ_NUMBER_MFT0_OCU0   45u

Definition at line 266 of file dstc.h.

Referenced by Dstc_MftOcuIrqHandler().

#define DSTC_IRQ_NUMBER_MFT0_OCU1   46u

Definition at line 267 of file dstc.h.

Referenced by Dstc_MftOcuIrqHandler().

#define DSTC_IRQ_NUMBER_MFT0_OCU2   47u

Definition at line 268 of file dstc.h.

Referenced by Dstc_MftOcuIrqHandler().

#define DSTC_IRQ_NUMBER_MFT0_OCU3   48u

Definition at line 269 of file dstc.h.

Referenced by Dstc_MftOcuIrqHandler().

#define DSTC_IRQ_NUMBER_MFT0_OCU4   49u

Definition at line 270 of file dstc.h.

Referenced by Dstc_MftOcuIrqHandler().

#define DSTC_IRQ_NUMBER_MFT0_OCU5   50u

Definition at line 271 of file dstc.h.

Referenced by Dstc_MftOcuIrqHandler().

#define DSTC_IRQ_NUMBER_MFT0_WFG10   32u

Definition at line 272 of file dstc.h.

Referenced by Dstc_MftWfgIrqHandler().

#define DSTC_IRQ_NUMBER_MFT0_WFG32   33u

Definition at line 273 of file dstc.h.

Referenced by Dstc_MftWfgIrqHandler().

#define DSTC_IRQ_NUMBER_MFT0_WFG54   34u

Definition at line 274 of file dstc.h.

Referenced by Dstc_MftWfgIrqHandler().

#define DSTC_IRQ_NUMBER_MFT1_FRT0_PEAK   54u

Definition at line 275 of file dstc.h.

Referenced by Dstc_MftFrtPeakIrqHandler().

#define DSTC_IRQ_NUMBER_MFT1_FRT0_ZERO   57u

Definition at line 276 of file dstc.h.

Referenced by Dstc_MftFrtZeroIrqHandler().

#define DSTC_IRQ_NUMBER_MFT1_FRT1_PEAK   55u

Definition at line 277 of file dstc.h.

Referenced by Dstc_MftFrtPeakIrqHandler().

#define DSTC_IRQ_NUMBER_MFT1_FRT1_ZERO   58u

Definition at line 278 of file dstc.h.

Referenced by Dstc_MftFrtZeroIrqHandler().

#define DSTC_IRQ_NUMBER_MFT1_FRT2_PEAK   56u

Definition at line 279 of file dstc.h.

Referenced by Dstc_MftFrtPeakIrqHandler().

#define DSTC_IRQ_NUMBER_MFT1_FRT2_ZERO   59u

Definition at line 280 of file dstc.h.

Referenced by Dstc_MftFrtZeroIrqHandler().

#define DSTC_IRQ_NUMBER_MFT1_ICU0   60u

Definition at line 281 of file dstc.h.

Referenced by Dstc_MftIcuIrqHandler().

#define DSTC_IRQ_NUMBER_MFT1_ICU1   61u

Definition at line 282 of file dstc.h.

Referenced by Dstc_MftIcuIrqHandler().

#define DSTC_IRQ_NUMBER_MFT1_ICU2   62u

Definition at line 283 of file dstc.h.

Referenced by Dstc_MftIcuIrqHandler().

#define DSTC_IRQ_NUMBER_MFT1_ICU3   63u

Definition at line 284 of file dstc.h.

Referenced by Dstc_MftIcuIrqHandler().

#define DSTC_IRQ_NUMBER_MFT1_OCU0   64u

Definition at line 285 of file dstc.h.

Referenced by Dstc_MftOcuIrqHandler().

#define DSTC_IRQ_NUMBER_MFT1_OCU1   65u

Definition at line 286 of file dstc.h.

Referenced by Dstc_MftOcuIrqHandler().

#define DSTC_IRQ_NUMBER_MFT1_OCU2   66u

Definition at line 287 of file dstc.h.

Referenced by Dstc_MftOcuIrqHandler().

#define DSTC_IRQ_NUMBER_MFT1_OCU3   67u

Definition at line 288 of file dstc.h.

Referenced by Dstc_MftOcuIrqHandler().

#define DSTC_IRQ_NUMBER_MFT1_OCU4   68u

Definition at line 289 of file dstc.h.

Referenced by Dstc_MftOcuIrqHandler().

#define DSTC_IRQ_NUMBER_MFT1_OCU5   69u

Definition at line 290 of file dstc.h.

Referenced by Dstc_MftOcuIrqHandler().

#define DSTC_IRQ_NUMBER_MFT1_WFG10   51u

Definition at line 291 of file dstc.h.

Referenced by Dstc_MftWfgIrqHandler().

#define DSTC_IRQ_NUMBER_MFT1_WFG32   52u

Definition at line 292 of file dstc.h.

Referenced by Dstc_MftWfgIrqHandler().

#define DSTC_IRQ_NUMBER_MFT1_WFG54   53u

Definition at line 293 of file dstc.h.

Referenced by Dstc_MftWfgIrqHandler().

#define DSTC_IRQ_NUMBER_MFT2_FRT0_PEAK   163u

Definition at line 294 of file dstc.h.

Referenced by Dstc_MftFrtPeakIrqHandler().

#define DSTC_IRQ_NUMBER_MFT2_FRT0_ZERO   166u

Definition at line 295 of file dstc.h.

Referenced by Dstc_MftFrtZeroIrqHandler().

#define DSTC_IRQ_NUMBER_MFT2_FRT1_PEAK   164u

Definition at line 296 of file dstc.h.

Referenced by Dstc_MftFrtPeakIrqHandler().

#define DSTC_IRQ_NUMBER_MFT2_FRT1_ZERO   167u

Definition at line 297 of file dstc.h.

Referenced by Dstc_MftFrtZeroIrqHandler().

#define DSTC_IRQ_NUMBER_MFT2_FRT2_PEAK   165u

Definition at line 298 of file dstc.h.

Referenced by Dstc_MftFrtPeakIrqHandler().

#define DSTC_IRQ_NUMBER_MFT2_FRT2_ZERO   168u

Definition at line 299 of file dstc.h.

Referenced by Dstc_MftFrtZeroIrqHandler().

#define DSTC_IRQ_NUMBER_MFT2_ICU0   169u

Definition at line 300 of file dstc.h.

Referenced by Dstc_MftIcuIrqHandler().

#define DSTC_IRQ_NUMBER_MFT2_ICU1   170u

Definition at line 301 of file dstc.h.

Referenced by Dstc_MftIcuIrqHandler().

#define DSTC_IRQ_NUMBER_MFT2_ICU2   171u

Definition at line 302 of file dstc.h.

Referenced by Dstc_MftIcuIrqHandler().

#define DSTC_IRQ_NUMBER_MFT2_ICU3   172u

Definition at line 303 of file dstc.h.

Referenced by Dstc_MftIcuIrqHandler().

#define DSTC_IRQ_NUMBER_MFT2_OCU0   173u

Definition at line 304 of file dstc.h.

Referenced by Dstc_MftOcuIrqHandler().

#define DSTC_IRQ_NUMBER_MFT2_OCU1   174u

Definition at line 305 of file dstc.h.

Referenced by Dstc_MftOcuIrqHandler().

#define DSTC_IRQ_NUMBER_MFT2_OCU2   175u

Definition at line 306 of file dstc.h.

Referenced by Dstc_MftOcuIrqHandler().

#define DSTC_IRQ_NUMBER_MFT2_OCU3   176u

Definition at line 307 of file dstc.h.

Referenced by Dstc_MftOcuIrqHandler().

#define DSTC_IRQ_NUMBER_MFT2_OCU4   177u

Definition at line 308 of file dstc.h.

Referenced by Dstc_MftOcuIrqHandler().

#define DSTC_IRQ_NUMBER_MFT2_OCU5   178u

Definition at line 309 of file dstc.h.

Referenced by Dstc_MftOcuIrqHandler().

#define DSTC_IRQ_NUMBER_MFT2_WFG10   160u

Definition at line 310 of file dstc.h.

Referenced by Dstc_MftWfgIrqHandler().

#define DSTC_IRQ_NUMBER_MFT2_WFG32   161u

Definition at line 311 of file dstc.h.

Referenced by Dstc_MftWfgIrqHandler().

#define DSTC_IRQ_NUMBER_MFT2_WFG54   162u

Definition at line 312 of file dstc.h.

Referenced by Dstc_MftWfgIrqHandler().

#define DSTC_IRQ_NUMBER_PPG0   70u

Definition at line 313 of file dstc.h.

Referenced by Dstc_PpgIrqHandler().

#define DSTC_IRQ_NUMBER_PPG10   74u

Definition at line 314 of file dstc.h.

Referenced by Dstc_PpgIrqHandler().

#define DSTC_IRQ_NUMBER_PPG12   75u

Definition at line 315 of file dstc.h.

Referenced by Dstc_PpgIrqHandler().

#define DSTC_IRQ_NUMBER_PPG16   179u

Definition at line 316 of file dstc.h.

Referenced by Dstc_PpgIrqHandler().

#define DSTC_IRQ_NUMBER_PPG18   180u

Definition at line 317 of file dstc.h.

Referenced by Dstc_PpgIrqHandler().

#define DSTC_IRQ_NUMBER_PPG2   71u

Definition at line 318 of file dstc.h.

Referenced by Dstc_PpgIrqHandler().

#define DSTC_IRQ_NUMBER_PPG20   181u

Definition at line 319 of file dstc.h.

Referenced by Dstc_PpgIrqHandler().

#define DSTC_IRQ_NUMBER_PPG4   72u

Definition at line 320 of file dstc.h.

Referenced by Dstc_PpgIrqHandler().

#define DSTC_IRQ_NUMBER_PPG8   73u

Definition at line 321 of file dstc.h.

Referenced by Dstc_PpgIrqHandler().

#define DSTC_IRQ_NUMBER_QPRC0_COUNT_INVERSION   79u

Definition at line 322 of file dstc.h.

Referenced by Dstc_QprcIrqHandler().

#define DSTC_IRQ_NUMBER_QPRC0_OUT_OF_RANGE   80u

Definition at line 323 of file dstc.h.

Referenced by Dstc_QprcIrqHandler().

#define DSTC_IRQ_NUMBER_QPRC0_PC_MATCH   76u

Definition at line 324 of file dstc.h.

Referenced by Dstc_QprcIrqHandler().

#define DSTC_IRQ_NUMBER_QPRC0_PC_MATCH_RC_MATCH   81u

Definition at line 325 of file dstc.h.

Referenced by Dstc_QprcIrqHandler().

#define DSTC_IRQ_NUMBER_QPRC0_PC_RC_MATCH   77u

Definition at line 326 of file dstc.h.

Referenced by Dstc_QprcIrqHandler().

#define DSTC_IRQ_NUMBER_QPRC0_UFL_OFL_Z   78u

Definition at line 327 of file dstc.h.

Referenced by Dstc_QprcIrqHandler().

#define DSTC_IRQ_NUMBER_QPRC1_COUNT_INVERSION   85u

Definition at line 328 of file dstc.h.

Referenced by Dstc_QprcIrqHandler().

#define DSTC_IRQ_NUMBER_QPRC1_OUT_OF_RANGE   86u

Definition at line 329 of file dstc.h.

Referenced by Dstc_QprcIrqHandler().

#define DSTC_IRQ_NUMBER_QPRC1_PC_MATCH   82u

Definition at line 330 of file dstc.h.

Referenced by Dstc_QprcIrqHandler().

#define DSTC_IRQ_NUMBER_QPRC1_PC_MATCH_RC_MATCH   87u

Definition at line 331 of file dstc.h.

Referenced by Dstc_QprcIrqHandler().

#define DSTC_IRQ_NUMBER_QPRC1_PC_RC_MATCH   83u

Definition at line 332 of file dstc.h.

Referenced by Dstc_QprcIrqHandler().

#define DSTC_IRQ_NUMBER_QPRC1_UFL_OFL_Z   84u

Definition at line 333 of file dstc.h.

Referenced by Dstc_QprcIrqHandler().

#define DSTC_IRQ_NUMBER_QPRC2_COUNT_INVERSION   185u

Definition at line 334 of file dstc.h.

Referenced by Dstc_QprcIrqHandler().

#define DSTC_IRQ_NUMBER_QPRC2_OUT_OF_RANGE   186u

Definition at line 335 of file dstc.h.

Referenced by Dstc_QprcIrqHandler().

#define DSTC_IRQ_NUMBER_QPRC2_PC_MATCH   182u

Definition at line 336 of file dstc.h.

Referenced by Dstc_QprcIrqHandler().

#define DSTC_IRQ_NUMBER_QPRC2_PC_MATCH_RC_MATCH   187u

Definition at line 337 of file dstc.h.

Referenced by Dstc_QprcIrqHandler().

#define DSTC_IRQ_NUMBER_QPRC2_PC_RC_MATCH   183u

Definition at line 338 of file dstc.h.

Referenced by Dstc_QprcIrqHandler().

#define DSTC_IRQ_NUMBER_QPRC2_UFL_OFL_Z   184u

Definition at line 339 of file dstc.h.

Referenced by Dstc_QprcIrqHandler().

#define DSTC_IRQ_NUMBER_QPRC3_COUNT_INVERSION   191u

Definition at line 340 of file dstc.h.

#define DSTC_IRQ_NUMBER_QPRC3_OUT_OF_RANGE   192u

Definition at line 341 of file dstc.h.

#define DSTC_IRQ_NUMBER_QPRC3_PC_MATCH   188u

Definition at line 342 of file dstc.h.

#define DSTC_IRQ_NUMBER_QPRC3_PC_MATCH_RC_MATCH   193u

Definition at line 343 of file dstc.h.

#define DSTC_IRQ_NUMBER_QPRC3_PC_RC_MATCH   189u

Definition at line 344 of file dstc.h.

#define DSTC_IRQ_NUMBER_QPRC3_UFL_OFL_Z   190u

Definition at line 345 of file dstc.h.

#define DSTC_IRQ_NUMBER_USB0_EP1   105u

Definition at line 346 of file dstc.h.

#define DSTC_IRQ_NUMBER_USB0_EP2   106u

Definition at line 347 of file dstc.h.

#define DSTC_IRQ_NUMBER_USB0_EP3   107u

Definition at line 348 of file dstc.h.

#define DSTC_IRQ_NUMBER_USB0_EP4   108u

Definition at line 349 of file dstc.h.

#define DSTC_IRQ_NUMBER_USB0_EP5   109u

Definition at line 350 of file dstc.h.

#define DSTC_IRQ_NUMBER_USB1_EP1   202u

Definition at line 351 of file dstc.h.

#define DSTC_IRQ_NUMBER_USB1_EP2   203u

Definition at line 352 of file dstc.h.

#define DSTC_IRQ_NUMBER_USB1_EP3   204u

Definition at line 353 of file dstc.h.

#define DSTC_IRQ_NUMBER_USB1_EP4   205u

Definition at line 354 of file dstc.h.

#define DSTC_IRQ_NUMBER_USB1_EP5   206u

Definition at line 355 of file dstc.h.

#define DSTC_IRQ_NUMBER_WC   88u

Definition at line 356 of file dstc.h.

Referenced by Dstc_WcIrqHandler().

#define DSTC_PCHK_CALC (   x)
Value:
((((x) & 0x0F000000ul) >> 24u) ^ \
(((x) & 0x00F00000ul) >> 20u) ^ \
(((x) & 0x000F0000ul) >> 16u) ^ \
(((x) & 0x0000F000ul) >> 12u) ^ \
(((x) & 0x00000F00ul) >> 8u) ^ \
(((x) & 0x000000F0ul) >> 4u))

Parity checksum for DES0 PCHKS bits.

Definition at line 146 of file dstc.h.

#define DSTC_TRANSITION_TIMEOUT   100000u

Timeout counter for DSTC mode transition.

Definition at line 143 of file dstc.h.

Referenced by Dstc_ReleaseStandBy().

Typedef Documentation

typedef enum en_dstc_cmd en_dstc_cmd_t

DSTC Commands.

MONERS EST Error Code.

Software Transfer Priority.

typedef void(* func_ptr_dstc_args_t)(en_dstc_est_error_t enEstError, uint16_t u16ErrorChannel, uint16_t u16ErrorDesPointer, boolean_t bSoftwareError, boolean_t bDoubleError, boolean_t bErrorStop)

Error Status Callback.

Definition at line 412 of file dstc.h.

DSTC configuration.

Definition of Descriptor Group DES0 - DES6.

Definition of Descriptor Group DES0 - DES5.

Definition of Descriptor Group DES0 - DES4, DES6.

Definition of Descriptor Group DES0 - DES4.

Definition of Descriptor Group DES0 - DES3, DES5.

Definition of Descriptor Group DES0 - DES3, DES6.

Definition of Descriptor Group DES0 - DES3.

Definition of Descriptor Group DES0 - DES3, DES5, DES6.

Definition of Descriptor 0 (DES0 - Transfer Basic Setting)

Definition of Descriptor 1 (DES1 - Number of Transfers) in Mode 0.

Definition of Descriptor 1 (DES1 - Number of Transfers) in Mode 1.

DQMSK structure.

DQMSKCLR structure.

DREQENB structure.

HWINT structure.

HWINTCLR structure.

DSTC Intern Data.

Enumeration Type Documentation

DSTC Commands.

Enumerator
CmdStandyRelease 

Instructs DSTC to return from standby state into normal state.

CmdStandyTransition 

Instructs DSTC to standby state.

CmdSwclr 

Clears SWTR:SWST to '0'; negates SWINT interrupt signal.

CmdErclr 

Clears MONERS:EST, MONERS:DER, and MONERS:ESTOP.

CmdRbclr 

Clears DESP to which DSTP refers in previous transfer; Sets next DES; Clears HWDESP[n].

CmdMkclr 

Clears all DQMSK[n].

Definition at line 367 of file dstc.h.

MONERS EST Error Code.

Enumerator
NoError 

No error occurred.

SourceAccessError 

Source access error.

DestinationAccessError 

Destination access error.

ForcedTransferStop 

Transfer has been stopped compulsorily.

DesAccessError 

DES access error.

DesOpenError 

DES open error.

UnknownError 

Undefined state, should never happen.

Definition at line 397 of file dstc.h.

Software Transfer Priority.

Enumerator
PriorityHighest 

Highest Priority.

Priority1_2 

Priority 1/2 Transfer Right.

Priority1_3 

Priority 1/2 Transfer Right.

Priority1_7 

Priority 1/2 Transfer Right.

Priority1_15 

Priority 1/2 Transfer Right.

Priority1_31 

Priority 1/2 Transfer Right.

Priority1_63 

Priority 1/2 Transfer Right.

PriorityLowest 

Lowest Priority.

Definition at line 381 of file dstc.h.

Function Documentation

void Dstc_BtIrqHandler ( uint8_t  u8IrqChannel0,
uint8_t  u8IrqChannel1 
)

BT.

Definition at line 1375 of file dstc.c.

References DSTC_IRQ_NUMBER_BT0_IRQ0, DSTC_IRQ_NUMBER_BT0_IRQ1, DSTC_IRQ_NUMBER_BT10_IRQ0, DSTC_IRQ_NUMBER_BT10_IRQ1, DSTC_IRQ_NUMBER_BT11_IRQ0, DSTC_IRQ_NUMBER_BT11_IRQ1, DSTC_IRQ_NUMBER_BT12_IRQ0, DSTC_IRQ_NUMBER_BT12_IRQ1, DSTC_IRQ_NUMBER_BT13_IRQ0, DSTC_IRQ_NUMBER_BT13_IRQ1, DSTC_IRQ_NUMBER_BT14_IRQ0, DSTC_IRQ_NUMBER_BT14_IRQ1, DSTC_IRQ_NUMBER_BT15_IRQ0, DSTC_IRQ_NUMBER_BT15_IRQ1, DSTC_IRQ_NUMBER_BT1_IRQ0, DSTC_IRQ_NUMBER_BT1_IRQ1, DSTC_IRQ_NUMBER_BT2_IRQ0, DSTC_IRQ_NUMBER_BT2_IRQ1, DSTC_IRQ_NUMBER_BT3_IRQ0, DSTC_IRQ_NUMBER_BT3_IRQ1, DSTC_IRQ_NUMBER_BT4_IRQ0, DSTC_IRQ_NUMBER_BT4_IRQ1, DSTC_IRQ_NUMBER_BT5_IRQ0, DSTC_IRQ_NUMBER_BT5_IRQ1, DSTC_IRQ_NUMBER_BT6_IRQ0, DSTC_IRQ_NUMBER_BT6_IRQ1, DSTC_IRQ_NUMBER_BT7_IRQ0, DSTC_IRQ_NUMBER_BT7_IRQ1, DSTC_IRQ_NUMBER_BT8_IRQ0, DSTC_IRQ_NUMBER_BT8_IRQ1, DSTC_IRQ_NUMBER_BT9_IRQ0, DSTC_IRQ_NUMBER_BT9_IRQ1, Dstc_ReadHwintBit(), Dstc_SetHwintclrBit(), stc_dstc_intern_data::pfnDstcBt0Irq0Callback, stc_dstc_intern_data::pfnDstcBt0Irq1Callback, stc_dstc_intern_data::pfnDstcBt10Irq0Callback, stc_dstc_intern_data::pfnDstcBt11Irq0Callback, stc_dstc_intern_data::pfnDstcBt11Irq1Callback, stc_dstc_intern_data::pfnDstcBt12Irq0Callback, stc_dstc_intern_data::pfnDstcBt12Irq1Callback, stc_dstc_intern_data::pfnDstcBt13Irq0Callback, stc_dstc_intern_data::pfnDstcBt13Irq1Callback, stc_dstc_intern_data::pfnDstcBt14Irq0Callback, stc_dstc_intern_data::pfnDstcBt14Irq1Callback, stc_dstc_intern_data::pfnDstcBt15Irq0Callback, stc_dstc_intern_data::pfnDstcBt15Irq1Callback, stc_dstc_intern_data::pfnDstcBt1Irq0Callback, stc_dstc_intern_data::pfnDstcBt1Irq1Callback, stc_dstc_intern_data::pfnDstcBt2Irq0Callback, stc_dstc_intern_data::pfnDstcBt2Irq1Callback, stc_dstc_intern_data::pfnDstcBt3Irq0Callback, stc_dstc_intern_data::pfnDstcBt3Irq1Callback, stc_dstc_intern_data::pfnDstcBt4Irq0Callback, stc_dstc_intern_data::pfnDstcBt4Irq1Callback, stc_dstc_intern_data::pfnDstcBt5Irq0Callback, stc_dstc_intern_data::pfnDstcBt5Irq1Callback, stc_dstc_intern_data::pfnDstcBt6Irq0Callback, stc_dstc_intern_data::pfnDstcBt6Irq1Callback, stc_dstc_intern_data::pfnDstcBt7Irq0Callback, stc_dstc_intern_data::pfnDstcBt7Irq1Callback, stc_dstc_intern_data::pfnDstcBt8Irq0Callback, stc_dstc_intern_data::pfnDstcBt8Irq1Callback, stc_dstc_intern_data::pfnDstcBt9Irq0Callback, stc_dstc_intern_data::pfnDstcBt9Irq1Callback, and TRUE.

Here is the call graph for this function:

en_result_t Dstc_ClearDreqenbBit ( uint8_t  u8BitPos)

Clear DREQENB Register Bit.

Parameters
[in]u8BitPosBit Position (IRQ Number)
Return values
OkDREQENB Bit set successfully

Definition at line 1115 of file dstc.c.

References Ok.

en_result_t Dstc_DeInit ( void  )

De-Initializes the the DSTC.

Return values
OkDSTC de-initialized and in standby mode

Definition at line 903 of file dstc.c.

References CmdStandyTransition, Dstc_SetCommand(), Ok, PDL_DEFAULT_INTERRUPT_LEVEL, stc_dstc_intern_data::pfnErrorCallback, and stc_dstc_intern_data::pfnNotifySwCallback.

Here is the call graph for this function:

void Dstc_ExintIrqHandler ( uint8_t  u8IrqChannel)

EXT INT.

Definition at line 1622 of file dstc.c.

References DSTC_IRQ_NUMBER_EXTINT0, DSTC_IRQ_NUMBER_EXTINT1, DSTC_IRQ_NUMBER_EXTINT10, DSTC_IRQ_NUMBER_EXTINT11, DSTC_IRQ_NUMBER_EXTINT12, DSTC_IRQ_NUMBER_EXTINT13, DSTC_IRQ_NUMBER_EXTINT14, DSTC_IRQ_NUMBER_EXTINT15, DSTC_IRQ_NUMBER_EXTINT16, DSTC_IRQ_NUMBER_EXTINT17, DSTC_IRQ_NUMBER_EXTINT18, DSTC_IRQ_NUMBER_EXTINT19, DSTC_IRQ_NUMBER_EXTINT2, DSTC_IRQ_NUMBER_EXTINT20, DSTC_IRQ_NUMBER_EXTINT21, DSTC_IRQ_NUMBER_EXTINT22, DSTC_IRQ_NUMBER_EXTINT23, DSTC_IRQ_NUMBER_EXTINT24, DSTC_IRQ_NUMBER_EXTINT25, DSTC_IRQ_NUMBER_EXTINT26, DSTC_IRQ_NUMBER_EXTINT27, DSTC_IRQ_NUMBER_EXTINT28, DSTC_IRQ_NUMBER_EXTINT29, DSTC_IRQ_NUMBER_EXTINT3, DSTC_IRQ_NUMBER_EXTINT30, DSTC_IRQ_NUMBER_EXTINT31, DSTC_IRQ_NUMBER_EXTINT4, DSTC_IRQ_NUMBER_EXTINT5, DSTC_IRQ_NUMBER_EXTINT6, DSTC_IRQ_NUMBER_EXTINT7, DSTC_IRQ_NUMBER_EXTINT8, DSTC_IRQ_NUMBER_EXTINT9, Dstc_ReadHwintBit(), Dstc_SetHwintclrBit(), stc_dstc_intern_data::pfnDstcExint0Callback, stc_dstc_intern_data::pfnDstcExint10Callback, stc_dstc_intern_data::pfnDstcExint11Callback, stc_dstc_intern_data::pfnDstcExint12Callback, stc_dstc_intern_data::pfnDstcExint13Callback, stc_dstc_intern_data::pfnDstcExint14Callback, stc_dstc_intern_data::pfnDstcExint15Callback, stc_dstc_intern_data::pfnDstcExint16Callback, stc_dstc_intern_data::pfnDstcExint17Callback, stc_dstc_intern_data::pfnDstcExint18Callback, stc_dstc_intern_data::pfnDstcExint19Callback, stc_dstc_intern_data::pfnDstcExint1Callback, stc_dstc_intern_data::pfnDstcExint20Callback, stc_dstc_intern_data::pfnDstcExint21Callback, stc_dstc_intern_data::pfnDstcExint22Callback, stc_dstc_intern_data::pfnDstcExint23Callback, stc_dstc_intern_data::pfnDstcExint24Callback, stc_dstc_intern_data::pfnDstcExint25Callback, stc_dstc_intern_data::pfnDstcExint26Callback, stc_dstc_intern_data::pfnDstcExint27Callback, stc_dstc_intern_data::pfnDstcExint28Callback, stc_dstc_intern_data::pfnDstcExint29Callback, stc_dstc_intern_data::pfnDstcExint2Callback, stc_dstc_intern_data::pfnDstcExint30Callback, stc_dstc_intern_data::pfnDstcExint31Callback, stc_dstc_intern_data::pfnDstcExint3Callback, stc_dstc_intern_data::pfnDstcExint4Callback, stc_dstc_intern_data::pfnDstcExint5Callback, stc_dstc_intern_data::pfnDstcExint6Callback, stc_dstc_intern_data::pfnDstcExint7Callback, stc_dstc_intern_data::pfnDstcExint8Callback, stc_dstc_intern_data::pfnDstcExint9Callback, and TRUE.

Here is the call graph for this function:

en_result_t Dstc_Init ( stc_dstc_config_t *  pstcConfig)

Initializes the DSTC according the Configuration.

Parameters
[in]pstcConfigPointer to DSTC Configuration
Return values
OkDSTC Initialized
ErrorNotReadyDSTC standby initialization failed
ErrorInvalidParameterpstcConfig == NULL or other configuration wrong
ErrorAddressAlignmentDES Base Address not aligned to 32 Bit

Definition at line 214 of file dstc.c.

References stc_dstc_config::bErInterruptEnable, stc_dstc_config::bErrorStopEnable, stc_dstc_config::bReadSkipBufferDisable, stc_dstc_config::bSwInterruptEnable, Dstc_ReleaseStandBy(), stc_dstc_config::enSwTransferPriority, ErrorAddressAlignment, ErrorInvalidParameter, ErrorNotReady, Ok, PDL_IRQ_LEVEL_DSTC, stc_dstc_config::pfnDstcAdc0PrioCallback, stc_dstc_intern_data::pfnDstcAdc0PrioCallback, stc_dstc_config::pfnDstcAdc0ScanCallback, stc_dstc_intern_data::pfnDstcAdc0ScanCallback, stc_dstc_config::pfnDstcAdc1PrioCallback, stc_dstc_intern_data::pfnDstcAdc1PrioCallback, stc_dstc_config::pfnDstcAdc1ScanCallback, stc_dstc_intern_data::pfnDstcAdc1ScanCallback, stc_dstc_config::pfnDstcAdc2PrioCallback, stc_dstc_intern_data::pfnDstcAdc2PrioCallback, stc_dstc_config::pfnDstcAdc2ScanCallback, stc_dstc_intern_data::pfnDstcAdc2ScanCallback, stc_dstc_config::pfnDstcBt0Irq0Callback, stc_dstc_intern_data::pfnDstcBt0Irq0Callback, stc_dstc_config::pfnDstcBt0Irq1Callback, stc_dstc_intern_data::pfnDstcBt0Irq1Callback, stc_dstc_config::pfnDstcBt10Irq0Callback, stc_dstc_intern_data::pfnDstcBt10Irq0Callback, stc_dstc_config::pfnDstcBt10Irq1Callback, stc_dstc_intern_data::pfnDstcBt10Irq1Callback, stc_dstc_config::pfnDstcBt11Irq0Callback, stc_dstc_intern_data::pfnDstcBt11Irq0Callback, stc_dstc_config::pfnDstcBt11Irq1Callback, stc_dstc_intern_data::pfnDstcBt11Irq1Callback, stc_dstc_config::pfnDstcBt12Irq0Callback, stc_dstc_intern_data::pfnDstcBt12Irq0Callback, stc_dstc_config::pfnDstcBt12Irq1Callback, stc_dstc_intern_data::pfnDstcBt12Irq1Callback, stc_dstc_config::pfnDstcBt13Irq0Callback, stc_dstc_intern_data::pfnDstcBt13Irq0Callback, stc_dstc_config::pfnDstcBt13Irq1Callback, stc_dstc_intern_data::pfnDstcBt13Irq1Callback, stc_dstc_config::pfnDstcBt14Irq0Callback, stc_dstc_intern_data::pfnDstcBt14Irq0Callback, stc_dstc_config::pfnDstcBt14Irq1Callback, stc_dstc_intern_data::pfnDstcBt14Irq1Callback, stc_dstc_config::pfnDstcBt15Irq0Callback, stc_dstc_intern_data::pfnDstcBt15Irq0Callback, stc_dstc_intern_data::pfnDstcBt15Irq1Callback, stc_dstc_config::pfnDstcBt1Irq0Callback, stc_dstc_intern_data::pfnDstcBt1Irq0Callback, stc_dstc_config::pfnDstcBt1Irq1Callback, stc_dstc_intern_data::pfnDstcBt1Irq1Callback, stc_dstc_config::pfnDstcBt2Irq0Callback, stc_dstc_intern_data::pfnDstcBt2Irq0Callback, stc_dstc_config::pfnDstcBt2Irq1Callback, stc_dstc_intern_data::pfnDstcBt2Irq1Callback, stc_dstc_config::pfnDstcBt3Irq0Callback, stc_dstc_intern_data::pfnDstcBt3Irq0Callback, stc_dstc_config::pfnDstcBt3Irq1Callback, stc_dstc_intern_data::pfnDstcBt3Irq1Callback, stc_dstc_config::pfnDstcBt4Irq0Callback, stc_dstc_intern_data::pfnDstcBt4Irq0Callback, stc_dstc_config::pfnDstcBt4Irq1Callback, stc_dstc_intern_data::pfnDstcBt4Irq1Callback, stc_dstc_config::pfnDstcBt5Irq0Callback, stc_dstc_intern_data::pfnDstcBt5Irq0Callback, stc_dstc_config::pfnDstcBt5Irq1Callback, stc_dstc_intern_data::pfnDstcBt5Irq1Callback, stc_dstc_config::pfnDstcBt6Irq0Callback, stc_dstc_intern_data::pfnDstcBt6Irq0Callback, stc_dstc_config::pfnDstcBt6Irq1Callback, stc_dstc_intern_data::pfnDstcBt6Irq1Callback, stc_dstc_config::pfnDstcBt7Irq0Callback, stc_dstc_intern_data::pfnDstcBt7Irq0Callback, stc_dstc_config::pfnDstcBt7Irq1Callback, stc_dstc_intern_data::pfnDstcBt7Irq1Callback, stc_dstc_config::pfnDstcBt8Irq0Callback, stc_dstc_intern_data::pfnDstcBt8Irq0Callback, stc_dstc_config::pfnDstcBt8Irq1Callback, stc_dstc_intern_data::pfnDstcBt8Irq1Callback, stc_dstc_config::pfnDstcBt9Irq0Callback, stc_dstc_intern_data::pfnDstcBt9Irq0Callback, stc_dstc_config::pfnDstcBt9Irq1Callback, stc_dstc_intern_data::pfnDstcBt9Irq1Callback, stc_dstc_config::pfnDstcMfs0RxCallback, stc_dstc_intern_data::pfnDstcMfs0RxCallback, stc_dstc_config::pfnDstcMfs0TxCallback, stc_dstc_intern_data::pfnDstcMfs0TxCallback, stc_dstc_config::pfnDstcMfs10RxCallback, stc_dstc_intern_data::pfnDstcMfs10RxCallback, stc_dstc_config::pfnDstcMfs10TxCallback, stc_dstc_intern_data::pfnDstcMfs10TxCallback, stc_dstc_config::pfnDstcMfs11RxCallback, stc_dstc_intern_data::pfnDstcMfs11RxCallback, stc_dstc_config::pfnDstcMfs11TxCallback, stc_dstc_intern_data::pfnDstcMfs11TxCallback, stc_dstc_config::pfnDstcMfs12RxCallback, stc_dstc_intern_data::pfnDstcMfs12RxCallback, stc_dstc_config::pfnDstcMfs12TxCallback, stc_dstc_intern_data::pfnDstcMfs12TxCallback, stc_dstc_config::pfnDstcMfs13RxCallback, stc_dstc_intern_data::pfnDstcMfs13RxCallback, stc_dstc_config::pfnDstcMfs13TxCallback, stc_dstc_intern_data::pfnDstcMfs13TxCallback, stc_dstc_config::pfnDstcMfs14RxCallback, stc_dstc_intern_data::pfnDstcMfs14RxCallback, stc_dstc_config::pfnDstcMfs14TxCallback, stc_dstc_intern_data::pfnDstcMfs14TxCallback, stc_dstc_config::pfnDstcMfs15RxCallback, stc_dstc_intern_data::pfnDstcMfs15RxCallback, stc_dstc_config::pfnDstcMfs15TxCallback, stc_dstc_intern_data::pfnDstcMfs15TxCallback, stc_dstc_config::pfnDstcMfs1RxCallback, stc_dstc_intern_data::pfnDstcMfs1RxCallback, stc_dstc_config::pfnDstcMfs1TxCallback, stc_dstc_intern_data::pfnDstcMfs1TxCallback, stc_dstc_config::pfnDstcMfs2RxCallback, stc_dstc_intern_data::pfnDstcMfs2RxCallback, stc_dstc_config::pfnDstcMfs2TxCallback, stc_dstc_intern_data::pfnDstcMfs2TxCallback, stc_dstc_config::pfnDstcMfs3RxCallback, stc_dstc_intern_data::pfnDstcMfs3RxCallback, stc_dstc_config::pfnDstcMfs3TxCallback, stc_dstc_intern_data::pfnDstcMfs3TxCallback, stc_dstc_config::pfnDstcMfs4RxCallback, stc_dstc_intern_data::pfnDstcMfs4RxCallback, stc_dstc_config::pfnDstcMfs4TxCallback, stc_dstc_intern_data::pfnDstcMfs4TxCallback, stc_dstc_config::pfnDstcMfs5RxCallback, stc_dstc_intern_data::pfnDstcMfs5RxCallback, stc_dstc_config::pfnDstcMfs5TxCallback, stc_dstc_intern_data::pfnDstcMfs5TxCallback, stc_dstc_config::pfnDstcMfs6RxCallback, stc_dstc_intern_data::pfnDstcMfs6RxCallback, stc_dstc_config::pfnDstcMfs6TxCallback, stc_dstc_intern_data::pfnDstcMfs6TxCallback, stc_dstc_config::pfnDstcMfs7RxCallback, stc_dstc_intern_data::pfnDstcMfs7RxCallback, stc_dstc_config::pfnDstcMfs7TxCallback, stc_dstc_intern_data::pfnDstcMfs7TxCallback, stc_dstc_config::pfnDstcMfs8RxCallback, stc_dstc_intern_data::pfnDstcMfs8RxCallback, stc_dstc_config::pfnDstcMfs8TxCallback, stc_dstc_intern_data::pfnDstcMfs8TxCallback, stc_dstc_config::pfnDstcMfs9RxCallback, stc_dstc_intern_data::pfnDstcMfs9RxCallback, stc_dstc_config::pfnDstcMfs9TxCallback, stc_dstc_intern_data::pfnDstcMfs9TxCallback, stc_dstc_config::pfnDstcMft0Frt0PeakCallback, stc_dstc_intern_data::pfnDstcMft0Frt0PeakCallback, stc_dstc_config::pfnDstcMft0Frt0ZeroCallback, stc_dstc_intern_data::pfnDstcMft0Frt0ZeroCallback, stc_dstc_config::pfnDstcMft0Frt1PeakCallback, stc_dstc_intern_data::pfnDstcMft0Frt1PeakCallback, stc_dstc_config::pfnDstcMft0Frt1ZeroCallback, stc_dstc_intern_data::pfnDstcMft0Frt1ZeroCallback, stc_dstc_config::pfnDstcMft0Frt2PeakCallback, stc_dstc_intern_data::pfnDstcMft0Frt2PeakCallback, stc_dstc_config::pfnDstcMft0Frt2ZeroCallback, stc_dstc_intern_data::pfnDstcMft0Frt2ZeroCallback, stc_dstc_config::pfnDstcMft0Icu0Callback, stc_dstc_intern_data::pfnDstcMft0Icu0Callback, stc_dstc_config::pfnDstcMft0Icu1Callback, stc_dstc_intern_data::pfnDstcMft0Icu1Callback, stc_dstc_config::pfnDstcMft0Icu2Callback, stc_dstc_intern_data::pfnDstcMft0Icu2Callback, stc_dstc_config::pfnDstcMft0Icu3Callback, stc_dstc_intern_data::pfnDstcMft0Icu3Callback, stc_dstc_config::pfnDstcMft0Ocu0Callback, stc_dstc_intern_data::pfnDstcMft0Ocu0Callback, stc_dstc_config::pfnDstcMft0Ocu1Callback, stc_dstc_intern_data::pfnDstcMft0Ocu1Callback, stc_dstc_config::pfnDstcMft0Ocu2Callback, stc_dstc_intern_data::pfnDstcMft0Ocu2Callback, stc_dstc_config::pfnDstcMft0Ocu3Callback, stc_dstc_intern_data::pfnDstcMft0Ocu3Callback, stc_dstc_config::pfnDstcMft0Ocu4Callback, stc_dstc_intern_data::pfnDstcMft0Ocu4Callback, stc_dstc_config::pfnDstcMft0Ocu5Callback, stc_dstc_intern_data::pfnDstcMft0Ocu5Callback, stc_dstc_config::pfnDstcMft0Wfg10Callback, stc_dstc_intern_data::pfnDstcMft0Wfg10Callback, stc_dstc_config::pfnDstcMft0Wfg32Callback, stc_dstc_intern_data::pfnDstcMft0Wfg32Callback, stc_dstc_config::pfnDstcMft0Wfg54Callback, stc_dstc_intern_data::pfnDstcMft0Wfg54Callback, stc_dstc_config::pfnDstcMft1Frt0PeakCallback, stc_dstc_intern_data::pfnDstcMft1Frt0PeakCallback, stc_dstc_config::pfnDstcMft1Frt0ZeroCallback, stc_dstc_intern_data::pfnDstcMft1Frt0ZeroCallback, stc_dstc_config::pfnDstcMft1Frt1PeakCallback, stc_dstc_intern_data::pfnDstcMft1Frt1PeakCallback, stc_dstc_config::pfnDstcMft1Frt1ZeroCallback, stc_dstc_intern_data::pfnDstcMft1Frt1ZeroCallback, stc_dstc_config::pfnDstcMft1Frt2PeakCallback, stc_dstc_intern_data::pfnDstcMft1Frt2PeakCallback, stc_dstc_config::pfnDstcMft1Frt2ZeroCallback, stc_dstc_intern_data::pfnDstcMft1Frt2ZeroCallback, stc_dstc_config::pfnDstcMft1Icu0Callback, stc_dstc_intern_data::pfnDstcMft1Icu0Callback, stc_dstc_config::pfnDstcMft1Icu1Callback, stc_dstc_intern_data::pfnDstcMft1Icu1Callback, stc_dstc_config::pfnDstcMft1Icu2Callback, stc_dstc_intern_data::pfnDstcMft1Icu2Callback, stc_dstc_config::pfnDstcMft1Icu3Callback, stc_dstc_intern_data::pfnDstcMft1Icu3Callback, stc_dstc_config::pfnDstcMft1Ocu0Callback, stc_dstc_intern_data::pfnDstcMft1Ocu0Callback, stc_dstc_config::pfnDstcMft1Ocu1Callback, stc_dstc_intern_data::pfnDstcMft1Ocu1Callback, stc_dstc_config::pfnDstcMft1Ocu2Callback, stc_dstc_intern_data::pfnDstcMft1Ocu2Callback, stc_dstc_config::pfnDstcMft1Ocu3Callback, stc_dstc_intern_data::pfnDstcMft1Ocu3Callback, stc_dstc_config::pfnDstcMft1Ocu4Callback, stc_dstc_intern_data::pfnDstcMft1Ocu4Callback, stc_dstc_config::pfnDstcMft1Ocu5Callback, stc_dstc_intern_data::pfnDstcMft1Ocu5Callback, stc_dstc_config::pfnDstcMft1Wfg10Callback, stc_dstc_intern_data::pfnDstcMft1Wfg10Callback, stc_dstc_config::pfnDstcMft1Wfg32Callback, stc_dstc_intern_data::pfnDstcMft1Wfg32Callback, stc_dstc_config::pfnDstcMft1Wfg54Callback, stc_dstc_intern_data::pfnDstcMft1Wfg54Callback, stc_dstc_config::pfnDstcMft2Frt0PeakCallback, stc_dstc_intern_data::pfnDstcMft2Frt0PeakCallback, stc_dstc_config::pfnDstcMft2Frt0ZeroCallback, stc_dstc_intern_data::pfnDstcMft2Frt0ZeroCallback, stc_dstc_config::pfnDstcMft2Frt1PeakCallback, stc_dstc_intern_data::pfnDstcMft2Frt1PeakCallback, stc_dstc_config::pfnDstcMft2Frt1ZeroCallback, stc_dstc_intern_data::pfnDstcMft2Frt1ZeroCallback, stc_dstc_config::pfnDstcMft2Frt2PeakCallback, stc_dstc_intern_data::pfnDstcMft2Frt2PeakCallback, stc_dstc_config::pfnDstcMft2Frt2ZeroCallback, stc_dstc_intern_data::pfnDstcMft2Frt2ZeroCallback, stc_dstc_config::pfnDstcMft2Icu0Callback, stc_dstc_intern_data::pfnDstcMft2Icu0Callback, stc_dstc_config::pfnDstcMft2Icu1Callback, stc_dstc_intern_data::pfnDstcMft2Icu1Callback, stc_dstc_config::pfnDstcMft2Icu2Callback, stc_dstc_intern_data::pfnDstcMft2Icu2Callback, stc_dstc_config::pfnDstcMft2Icu3Callback, stc_dstc_intern_data::pfnDstcMft2Icu3Callback, stc_dstc_config::pfnDstcMft2Ocu0Callback, stc_dstc_intern_data::pfnDstcMft2Ocu0Callback, stc_dstc_config::pfnDstcMft2Ocu1Callback, stc_dstc_intern_data::pfnDstcMft2Ocu1Callback, stc_dstc_config::pfnDstcMft2Ocu2Callback, stc_dstc_intern_data::pfnDstcMft2Ocu2Callback, stc_dstc_config::pfnDstcMft2Ocu3Callback, stc_dstc_intern_data::pfnDstcMft2Ocu3Callback, stc_dstc_config::pfnDstcMft2Ocu4Callback, stc_dstc_intern_data::pfnDstcMft2Ocu4Callback, stc_dstc_config::pfnDstcMft2Ocu5Callback, stc_dstc_intern_data::pfnDstcMft2Ocu5Callback, stc_dstc_config::pfnDstcMft2Wfg10Callback, stc_dstc_intern_data::pfnDstcMft2Wfg10Callback, stc_dstc_config::pfnDstcMft2Wfg32Callback, stc_dstc_intern_data::pfnDstcMft2Wfg32Callback, stc_dstc_config::pfnDstcMft2Wfg54Callback, stc_dstc_intern_data::pfnDstcMft2Wfg54Callback, stc_dstc_config::pfnDstcPpg0Callback, stc_dstc_intern_data::pfnDstcPpg0Callback, stc_dstc_config::pfnDstcPpg10Callback, stc_dstc_intern_data::pfnDstcPpg10Callback, stc_dstc_config::pfnDstcPpg12Callback, stc_dstc_intern_data::pfnDstcPpg12Callback, stc_dstc_config::pfnDstcPpg16Callback, stc_dstc_intern_data::pfnDstcPpg16Callback, stc_dstc_config::pfnDstcPpg18Callback, stc_dstc_intern_data::pfnDstcPpg18Callback, stc_dstc_config::pfnDstcPpg20Callback, stc_dstc_intern_data::pfnDstcPpg20Callback, stc_dstc_config::pfnDstcPpg2Callback, stc_dstc_intern_data::pfnDstcPpg2Callback, stc_dstc_config::pfnDstcPpg4Callback, stc_dstc_intern_data::pfnDstcPpg4Callback, stc_dstc_config::pfnDstcPpg8Callback, stc_dstc_intern_data::pfnDstcPpg8Callback, stc_dstc_config::pfnDstcQprc0CountInversionCallback, stc_dstc_intern_data::pfnDstcQprc0CountInversionCallback, stc_dstc_config::pfnDstcQprc0OutOfRangeCallback, stc_dstc_intern_data::pfnDstcQprc0OutOfRangeCallback, stc_dstc_config::pfnDstcQprc0PcMatchCallback, stc_dstc_intern_data::pfnDstcQprc0PcMatchCallback, stc_dstc_config::pfnDstcQprc0PcMatchRcMatchCallback, stc_dstc_intern_data::pfnDstcQprc0PcMatchRcMatchCallback, stc_dstc_config::pfnDstcQprc0PcRcMatchCallback, stc_dstc_intern_data::pfnDstcQprc0PcRcMatchCallback, stc_dstc_config::pfnDstcQprc0UflOflZCallback, stc_dstc_intern_data::pfnDstcQprc0UflOflZCallback, stc_dstc_config::pfnDstcQprc1CountInversionCallback, stc_dstc_intern_data::pfnDstcQprc1CountInversionCallback, stc_dstc_config::pfnDstcQprc1OutOfRangeCallback, stc_dstc_intern_data::pfnDstcQprc1OutOfRangeCallback, stc_dstc_config::pfnDstcQprc1PcMatchCallback, stc_dstc_intern_data::pfnDstcQprc1PcMatchCallback, stc_dstc_config::pfnDstcQprc1PcMatchRcMatchCallback, stc_dstc_intern_data::pfnDstcQprc1PcMatchRcMatchCallback, stc_dstc_config::pfnDstcQprc1PcRcMatchCallback, stc_dstc_intern_data::pfnDstcQprc1PcRcMatchCallback, stc_dstc_config::pfnDstcQprc1UflOflZCallback, stc_dstc_intern_data::pfnDstcQprc1UflOflZCallback, stc_dstc_config::pfnDstcQprc2CountInversionCallback, stc_dstc_intern_data::pfnDstcQprc2CountInversionCallback, stc_dstc_config::pfnDstcQprc2OutOfRangeCallback, stc_dstc_intern_data::pfnDstcQprc2OutOfRangeCallback, stc_dstc_config::pfnDstcQprc2PcMatchCallback, stc_dstc_intern_data::pfnDstcQprc2PcMatchCallback, stc_dstc_config::pfnDstcQprc2PcMatchRcMatchCallback, stc_dstc_intern_data::pfnDstcQprc2PcMatchRcMatchCallback, stc_dstc_config::pfnDstcQprc2PcRcMatchCallback, stc_dstc_intern_data::pfnDstcQprc2PcRcMatchCallback, stc_dstc_config::pfnDstcQprc2UflOflZCallback, stc_dstc_intern_data::pfnDstcQprc2UflOflZCallback, stc_dstc_config::pfnDstcQprc3CountInversionCallback, stc_dstc_intern_data::pfnDstcQprc3CountInversionCallback, stc_dstc_config::pfnDstcQprc3OutOfRangeCallback, stc_dstc_intern_data::pfnDstcQprc3OutOfRangeCallback, stc_dstc_config::pfnDstcQprc3PcMatchCallback, stc_dstc_intern_data::pfnDstcQprc3PcMatchCallback, stc_dstc_config::pfnDstcQprc3PcMatchRcMatchCallback, stc_dstc_intern_data::pfnDstcQprc3PcMatchRcMatchCallback, stc_dstc_config::pfnDstcQprc3PcRcMatchCallback, stc_dstc_intern_data::pfnDstcQprc3PcRcMatchCallback, stc_dstc_config::pfnDstcQprc3UflOflZCallback, stc_dstc_intern_data::pfnDstcQprc3UflOflZCallback, stc_dstc_config::pfnDstcUsb0Ep1Callback, stc_dstc_intern_data::pfnDstcUsb0Ep1Callback, stc_dstc_config::pfnDstcUsb0Ep2Callback, stc_dstc_intern_data::pfnDstcUsb0Ep2Callback, stc_dstc_config::pfnDstcUsb0Ep3Callback, stc_dstc_intern_data::pfnDstcUsb0Ep3Callback, stc_dstc_config::pfnDstcUsb0Ep4Callback, stc_dstc_intern_data::pfnDstcUsb0Ep4Callback, stc_dstc_config::pfnDstcUsb0Ep5Callback, stc_dstc_intern_data::pfnDstcUsb0Ep5Callback, stc_dstc_config::pfnDstcUsb1Ep1Callback, stc_dstc_intern_data::pfnDstcUsb1Ep1Callback, stc_dstc_config::pfnDstcUsb1Ep2Callback, stc_dstc_intern_data::pfnDstcUsb1Ep2Callback, stc_dstc_config::pfnDstcUsb1Ep3Callback, stc_dstc_intern_data::pfnDstcUsb1Ep3Callback, stc_dstc_config::pfnDstcUsb1Ep4Callback, stc_dstc_intern_data::pfnDstcUsb1Ep4Callback, stc_dstc_config::pfnDstcUsb1Ep5Callback, stc_dstc_intern_data::pfnDstcUsb1Ep5Callback, stc_dstc_config::pfnDstcWcCallback, stc_dstc_intern_data::pfnDstcWcCallback, stc_dstc_config::pfnErrorCallback, stc_dstc_intern_data::pfnErrorCallback, stc_dstc_config::pfnNotifySwCallback, stc_dstc_intern_data::pfnNotifySwCallback, Priority1_15, Priority1_2, Priority1_3, Priority1_31, Priority1_63, Priority1_7, PriorityHighest, PriorityLowest, TRUE, and stc_dstc_config::u32Destp.

Here is the call graph for this function:

void Dstc_IrqHandler ( void  )

Interrupt Service Routine of DSTC.

< Error channel, if HS == 1; 0xFFFF, if HS == 0

Definition at line 95 of file dstc.c.

References CmdErclr, CmdSwclr, DesAccessError, DesOpenError, DestinationAccessError, Dstc_SetCommand(), FALSE, ForcedTransferStop, NoError, stc_dstc_intern_data::pfnErrorCallback, stc_dstc_intern_data::pfnNotifySwCallback, SourceAccessError, TRUE, and UnknownError.

Here is the call graph for this function:

void Dstc_MftOcuIrqHandler ( uint8_t  u8IrqChannel)
void Dstc_QprcIrqHandler ( uint8_t  u8IrqChannel)

QPRC.

Definition at line 2552 of file dstc.c.

References DSTC_IRQ_NUMBER_QPRC0_COUNT_INVERSION, DSTC_IRQ_NUMBER_QPRC0_OUT_OF_RANGE, DSTC_IRQ_NUMBER_QPRC0_PC_MATCH, DSTC_IRQ_NUMBER_QPRC0_PC_MATCH_RC_MATCH, DSTC_IRQ_NUMBER_QPRC0_PC_RC_MATCH, DSTC_IRQ_NUMBER_QPRC0_UFL_OFL_Z, DSTC_IRQ_NUMBER_QPRC1_COUNT_INVERSION, DSTC_IRQ_NUMBER_QPRC1_OUT_OF_RANGE, DSTC_IRQ_NUMBER_QPRC1_PC_MATCH, DSTC_IRQ_NUMBER_QPRC1_PC_MATCH_RC_MATCH, DSTC_IRQ_NUMBER_QPRC1_PC_RC_MATCH, DSTC_IRQ_NUMBER_QPRC1_UFL_OFL_Z, DSTC_IRQ_NUMBER_QPRC2_COUNT_INVERSION, DSTC_IRQ_NUMBER_QPRC2_OUT_OF_RANGE, DSTC_IRQ_NUMBER_QPRC2_PC_MATCH, DSTC_IRQ_NUMBER_QPRC2_PC_MATCH_RC_MATCH, DSTC_IRQ_NUMBER_QPRC2_PC_RC_MATCH, DSTC_IRQ_NUMBER_QPRC2_UFL_OFL_Z, Dstc_ReadHwintBit(), Dstc_SetHwintclrBit(), stc_dstc_intern_data::pfnDstcQprc0CountInversionCallback, stc_dstc_intern_data::pfnDstcQprc0OutOfRangeCallback, stc_dstc_intern_data::pfnDstcQprc0PcMatchCallback, stc_dstc_intern_data::pfnDstcQprc0PcMatchRcMatchCallback, stc_dstc_intern_data::pfnDstcQprc0PcRcMatchCallback, stc_dstc_intern_data::pfnDstcQprc0UflOflZCallback, stc_dstc_intern_data::pfnDstcQprc1CountInversionCallback, stc_dstc_intern_data::pfnDstcQprc1OutOfRangeCallback, stc_dstc_intern_data::pfnDstcQprc1PcMatchCallback, stc_dstc_intern_data::pfnDstcQprc1PcMatchRcMatchCallback, stc_dstc_intern_data::pfnDstcQprc1PcRcMatchCallback, stc_dstc_intern_data::pfnDstcQprc1UflOflZCallback, stc_dstc_intern_data::pfnDstcQprc2CountInversionCallback, stc_dstc_intern_data::pfnDstcQprc2OutOfRangeCallback, stc_dstc_intern_data::pfnDstcQprc2PcMatchCallback, stc_dstc_intern_data::pfnDstcQprc2PcMatchRcMatchCallback, stc_dstc_intern_data::pfnDstcQprc2PcRcMatchCallback, stc_dstc_intern_data::pfnDstcQprc2UflOflZCallback, and TRUE.

Here is the call graph for this function:

en_result_t Dstc_ReadDqmsk ( stc_dstc_dqmsk_t *  pstcDqmsk)

Read DQMSK Register.

Parameters
[out]pstcDqmskPointer to DQMSK Structure
Return values
OkHWINT read-out successful

Definition at line 1220 of file dstc.c.

References Ok, stc_dstc_dqmsk::u32Dqmsk0, stc_dstc_dqmsk::u32Dqmsk1, stc_dstc_dqmsk::u32Dqmsk2, stc_dstc_dqmsk::u32Dqmsk3, stc_dstc_dqmsk::u32Dqmsk4, stc_dstc_dqmsk::u32Dqmsk5, stc_dstc_dqmsk::u32Dqmsk6, and stc_dstc_dqmsk::u32Dqmsk7.

en_result_t Dstc_ReadDreqenb ( stc_dstc_dreqenb_t *  pstcDreqenb)

Read DREQENB Register.

Parameters
[out]pstcDreqenbPointer to DREQENB Structure
Return values
OkDREQENB read-out successful

Definition at line 1074 of file dstc.c.

References Ok, stc_dstc_dreqenb::u32Dreqenb0, stc_dstc_dreqenb::u32Dreqenb1, stc_dstc_dreqenb::u32Dreqenb2, stc_dstc_dreqenb::u32Dreqenb3, stc_dstc_dreqenb::u32Dreqenb4, stc_dstc_dreqenb::u32Dreqenb5, stc_dstc_dreqenb::u32Dreqenb6, and stc_dstc_dreqenb::u32Dreqenb7.

uint16_t Dstc_ReadHwdesp ( uint8_t  u8Channel)

Read the HWDESP Address Offset of a Channel.

Parameters
[in]u8ChannelDSTC Channel to be initialized
Returns
uint16_t Current HWDESP DES Offset

Definition at line 955 of file dstc.c.

en_result_t Dstc_ReadHwint ( stc_dstc_hwint_t *  pstcHwint)

Read HWINT Register.

Parameters
[out]pstcHwintPointer to HWINT Structure
Return values
OkHWINT read-out successful

Definition at line 1134 of file dstc.c.

References Ok, stc_dstc_hwint::u32Hwint0, stc_dstc_hwint::u32Hwint1, stc_dstc_hwint::u32Hwint2, stc_dstc_hwint::u32Hwint3, stc_dstc_hwint::u32Hwint4, stc_dstc_hwint::u32Hwint5, stc_dstc_hwint::u32Hwint6, and stc_dstc_hwint::u32Hwint7.

boolean_t Dstc_ReadHwintBit ( uint8_t  u8BitPos)

Read HWINT Register Bit.

Parameters
[in]u8BitPosBit Position (IRQ Number)
Return values
TRUEHWINT bit set
FALSEHWINT bit not set

Definition at line 1179 of file dstc.c.

References FALSE, and TRUE.

Referenced by Dstc_AdcIrqHandler(), Dstc_BtIrqHandler(), Dstc_ExintIrqHandler(), Dstc_MfsRxIrqHandler(), Dstc_MfsTxIrqHandler(), Dstc_MftFrtPeakIrqHandler(), Dstc_MftFrtZeroIrqHandler(), Dstc_MftIcuIrqHandler(), Dstc_MftOcuIrqHandler(), Dstc_MftWfgIrqHandler(), Dstc_PpgIrqHandler(), Dstc_QprcIrqHandler(), and Dstc_WcIrqHandler().

Here is the caller graph for this function:

en_result_t Dstc_ReleaseStandBy ( void  )

Release DSTC from Standby State.

Return values
OkDSTC released from standby mode
ErrorNotReadyDSTC standby release failed

Definition at line 183 of file dstc.c.

References CmdStandyRelease, Dstc_SetCommand(), DSTC_TRANSITION_TIMEOUT, ErrorNotReady, and Ok.

Referenced by Dstc_Init().

Here is the call graph for this function:

Here is the caller graph for this function:

en_result_t Dstc_SetCommand ( en_dstc_cmd_t  enCommand)

Set a Command to CMD Register.

Parameters
[in]enCommandCommand of type of en_dstc_cmd_t
Return values
OkCommand Set
ErrorInvalidParameterWrong Command Enumerator used

Definition at line 971 of file dstc.c.

References CmdErclr, CmdMkclr, CmdRbclr, CmdStandyRelease, CmdStandyTransition, CmdSwclr, ErrorInvalidParameter, and Ok.

Referenced by Dstc_DeInit(), Dstc_IrqHandler(), and Dstc_ReleaseStandBy().

Here is the caller graph for this function:

en_result_t Dstc_SetDqmskclr ( stc_dstc_dqmskclr_t *  pstcDqmskclr)

Set DQMSKCLR Register.

Parameters
[in]pstcDqmskclrPointer to DQMSKCLR Structure
Return values
OkDQMSKCLR setting successful

Definition at line 1242 of file dstc.c.

References Ok, stc_dstc_dqmskclr::u32Dqmskclr0, stc_dstc_dqmskclr::u32Dqmskclr1, stc_dstc_dqmskclr::u32Dqmskclr2, stc_dstc_dqmskclr::u32Dqmskclr3, stc_dstc_dqmskclr::u32Dqmskclr4, stc_dstc_dqmskclr::u32Dqmskclr5, stc_dstc_dqmskclr::u32Dqmskclr6, and stc_dstc_dqmskclr::u32Dqmskclr7.

en_result_t Dstc_SetDqmskclrBit ( uint8_t  u8BitPos)

Set DQMSKCLR Register Bit.

Parameters
[in]u8BitPosBit Position (IRQ Number)
Return values
OkDQMSKCLR Bit set successfully

Definition at line 1264 of file dstc.c.

References Ok.

en_result_t Dstc_SetDreqenb ( stc_dstc_dreqenb_t *  pstcDreqenb)

Set DREQENB Register.

Parameters
[in]pstcDreqenbPointer to DREQENB Structure
Return values
OkDREQENB setting successful

Definition at line 1052 of file dstc.c.

References Ok, stc_dstc_dreqenb::u32Dreqenb0, stc_dstc_dreqenb::u32Dreqenb1, stc_dstc_dreqenb::u32Dreqenb2, stc_dstc_dreqenb::u32Dreqenb3, stc_dstc_dreqenb::u32Dreqenb4, stc_dstc_dreqenb::u32Dreqenb5, stc_dstc_dreqenb::u32Dreqenb6, and stc_dstc_dreqenb::u32Dreqenb7.

en_result_t Dstc_SetDreqenbBit ( uint8_t  u8BitPos)

Set DREQENB Register Bit.

Parameters
[in]u8BitPosBit Position (IRQ Number)
Return values
OkDREQENB Bit set successfully

Definition at line 1096 of file dstc.c.

References Ok.

en_result_t Dstc_SetHwdesp ( uint8_t  u8Channel,
uint16_t  u16HwDesp 
)

Initializes a DSTC channel.

Parameters
[in]u8ChannelDSTC Channel to be initialized
[in]u16HwDespOffset to Channel Configuration
Return values
OkDSTC Initialized
ErrorInvalidParameterDES Address > 16K Bytes
ErrorAddressAlignmentDES Address not aligned to 32 Bit

Definition at line 928 of file dstc.c.

References ErrorAddressAlignment, ErrorInvalidParameter, and Ok.

en_result_t Dstc_SetHwintclr ( stc_dstc_hwintclr_t *  pstcHwintclr)

Set HWINTCLR Register.

Parameters
[in]pstcHwintclrPointer to HWINTCLR Structure
Return values
OkHWINTCLR setting successful

Definition at line 1156 of file dstc.c.

References Ok, stc_dstc_hwintclr::u32Hwintclr0, stc_dstc_hwintclr::u32Hwintclr1, stc_dstc_hwintclr::u32Hwintclr2, stc_dstc_hwintclr::u32Hwintclr3, stc_dstc_hwintclr::u32Hwintclr4, stc_dstc_hwintclr::u32Hwintclr5, stc_dstc_hwintclr::u32Hwintclr6, and stc_dstc_hwintclr::u32Hwintclr7.

en_result_t Dstc_SetHwintclrBit ( uint8_t  u8BitPos)

Set HWINTCLR Register Bit.

Parameters
[in]u8BitPosBit Position (IRQ Number)
Return values
OkHWINTCLR Bit set successfully

Definition at line 1201 of file dstc.c.

References Ok.

Referenced by Dstc_AdcIrqHandler(), Dstc_BtIrqHandler(), Dstc_ExintIrqHandler(), Dstc_MfsRxIrqHandler(), Dstc_MfsTxIrqHandler(), Dstc_MftFrtPeakIrqHandler(), Dstc_MftFrtZeroIrqHandler(), Dstc_MftIcuIrqHandler(), Dstc_MftOcuIrqHandler(), Dstc_MftWfgIrqHandler(), Dstc_PpgIrqHandler(), Dstc_QprcIrqHandler(), and Dstc_WcIrqHandler().

Here is the caller graph for this function:

en_result_t Dstc_SwTrigger ( uint16_t  u16SwDesPointer)

Set SWDESP offset and trigger SW transfer.

Parameters
[in]u16SwDesPointerAddress offset to DES
Return values
OkSWDESP set
ErrorInvalidParameterOffset > 16K Bytes
ErrorAddressAlignmentOffset not 32-bit aligned

Definition at line 1010 of file dstc.c.

References ErrorAddressAlignment, ErrorInvalidParameter, and Ok.

en_result_t Dstc_SwTrqansferStartStatus ( void  )

Check Software Trigger Start State.

Return values
OkSW Transfer ended
OperationInProgressSW Transfer pending

Definition at line 1034 of file dstc.c.

References Ok, OperationInProgress, and TRUE.

void Dstc_WcIrqHandler ( void  )

Definition at line 2665 of file dstc.c.

References DSTC_IRQ_NUMBER_WC, Dstc_ReadHwintBit(), Dstc_SetHwintclrBit(), stc_dstc_intern_data::pfnDstcWcCallback, and TRUE.

Here is the call graph for this function:

Variable Documentation

stc_dstc_intern_data_t stcDstcInternData
static

Definition at line 85 of file dstc.c.