49 #include "IfxAsclin_reg.h"
1534 asclin->FLAGSCLEAR.U = 0xFFFFFFFF;
1540 asclin->FLAGSCLEAR.B.BDC = 1;
1546 asclin->FLAGSCLEAR.B.CEC = 1;
1552 asclin->FLAGSCLEAR.B.FEDC = 1;
1558 asclin->FLAGSCLEAR.B.FEC = 1;
1564 asclin->FLAGSCLEAR.B.HTC = 1;
1570 asclin->KRSTCLR.B.CLR = 1;
1576 asclin->FLAGSCLEAR.B.LAC = 1;
1582 asclin->FLAGSCLEAR.B.LCC = 1;
1588 asclin->FLAGSCLEAR.B.LPC = 1;
1594 asclin->FLAGSCLEAR.B.PEC = 1;
1600 asclin->FLAGSCLEAR.B.REDC = 1;
1606 asclin->FLAGSCLEAR.B.RTC = 1;
1612 asclin->FLAGSCLEAR.B.RFLC = 1;
1618 asclin->FLAGSCLEAR.B.RFOC = 1;
1624 asclin->FLAGSCLEAR.B.RFUC = 1;
1630 asclin->FLAGSCLEAR.B.RHC = 1;
1636 asclin->FLAGSCLEAR.B.RRC = 1;
1642 asclin->FLAGSCLEAR.B.TCC = 1;
1648 asclin->FLAGSCLEAR.B.TFLC = 1;
1654 asclin->FLAGSCLEAR.B.TFOC = 1;
1660 asclin->FLAGSCLEAR.B.THC = 1;
1666 asclin->FLAGSCLEAR.B.TRC = 1;
1672 asclin->FLAGSENABLE.U = 0x00000000;
1678 asclin->LIN.CON.B.ABD = enable ? 1 : 0;
1684 asclin->FLAGSENABLE.B.BDE = enable ? 1 : 0;
1690 asclin->FRAMECON.B.CEN = enable ? 1 : 0;
1696 asclin->FLAGSENABLE.B.CEE = enable ? 1 : 0;
1702 asclin->IOCR.B.CTSEN = enable ? 1 : 0;
1708 asclin->FLAGSENABLE.B.FEDE = enable ? 1 : 0;
1714 asclin->FLAGSENABLE.B.FEE = enable ? 1 : 0;
1720 asclin->LIN.CON.B.CSEN = enable ? 1 : 0;
1726 asclin->FLAGSENABLE.B.HTE = enable ? 1 : 0;
1732 asclin->FLAGSENABLE.B.ABE = enable ? 1 : 0;
1738 asclin->FLAGSENABLE.B.LCE = enable ? 1 : 0;
1744 asclin->FLAGSENABLE.B.LPE = enable ? 1 : 0;
1750 asclin->IOCR.B.LB = enable ? 1 : 0;
1756 asclin->FRAMECON.B.PEN = enable ? 1 : 0;
1762 asclin->FLAGSENABLE.B.PEE = enable ? 1 : 0;
1768 asclin->FLAGSENABLE.B.REDE = enable ? 1 : 0;
1774 asclin->FLAGSENABLE.B.RTE = enable ? 1 : 0;
1780 asclin->FLAGSENABLE.B.RFLE = enable ? 1 : 0;
1786 asclin->RXFIFOCON.B.ENI = enable ? 1 : 0;
1792 asclin->FLAGSENABLE.B.RFOE = enable ? 1 : 0;
1798 asclin->FLAGSENABLE.B.RFUE = enable ? 1 : 0;
1804 asclin->FLAGSENABLE.B.RHE = enable ? 1 : 0;
1810 asclin->FLAGSENABLE.B.RRE = enable ? 1 : 0;
1816 asclin->FLAGSENABLE.B.TCE = enable ? 1 : 0;
1822 asclin->FLAGSENABLE.B.TFLE = enable ? 1 : 0;
1828 asclin->TXFIFOCON.B.ENO = enable ? 1 : 0;
1834 asclin->FLAGSENABLE.B.TFOE = enable ? 1 : 0;
1840 asclin->FLAGSENABLE.B.THE = enable ? 1 : 0;
1846 asclin->FLAGSENABLE.B.TRE = enable ? 1 : 0;
1852 asclin->RXFIFOCON.B.FLUSH = 1;
1858 asclin->TXFIFOCON.B.FLUSH = 1;
1864 return asclin->FLAGS.B.BD;
1870 return asclin->CSR.B.CLKSEL;
1876 return asclin->CSR.B.CON;
1882 return asclin->FLAGS.B.CE;
1888 return asclin->FLAGS.B.FED;
1894 return asclin->FLAGS.B.FE;
1900 return asclin->FLAGS.B.HT;
1906 return asclin->KRST0.B.RSTSTAT;
1912 return asclin->FLAGS.B.LA;
1918 return asclin->FLAGS.B.LC;
1924 return asclin->FLAGS.B.LP;
1930 return asclin->CLC.B.DISS;
1936 return asclin->FLAGS.B.PE;
1942 return asclin->BITCON.B.PRESCALER + 1;
1948 return asclin->FLAGS.B.RED;
1954 return asclin->IOCR.B.RXM;
1960 return asclin->FLAGS.B.RT;
1966 return asclin->RXFIFOCON.B.FILL;
1972 return asclin->FLAGS.B.RFL;
1978 return asclin->RXFIFOCON.B.OUTW;
1984 return asclin->FLAGS.B.RFO;
1990 return asclin->FLAGS.B.RFU;
1996 return asclin->FLAGS.B.RH;
2002 return asclin->FLAGS.B.RR;
2008 return asclin->FLAGS.B.TC;
2014 return asclin->IOCR.B.TXM;
2020 return asclin->TXFIFOCON.B.FILL;
2026 return asclin->FLAGS.B.TFL;
2032 return asclin->TXFIFOCON.B.INW;
2038 return asclin->FLAGS.B.TFO;
2044 return asclin->FLAGS.B.TH;
2050 return asclin->FLAGS.B.TR;
2099 return asclin->RXDATA.U;
2105 asclin->BRD.B.LOWERLIMIT = limit;
2111 asclin->BRD.B.UPPERLIMIT = limit;
2117 asclin->LIN.CON.B.CSI = csi;
2123 asclin->DATCON.B.CSM = mode;
2129 asclin->IOCR.B.CPOL = cpol;
2135 asclin->IOCR.B.CTS = ctsi;
2141 asclin->DATCON.B.DATLEN = length;
2147 asclin->BRG.B.DENOMINATOR = denominator;
2153 asclin->CLC.B.DISR = 1;
2159 asclin->CLC.B.DISR = 0;
2165 asclin->IOCR.B.DEPTH =
__minu(depth, 63);
2171 asclin->FRAMECON.B.MODE = mode;
2177 asclin->DATCON.B.HO = type;
2183 asclin->FRAMECON.B.IDLE = delay;
2189 asclin->KRST1.B.RST = 1;
2195 asclin->KRST0.B.RST = 1;
2201 asclin->FRAMECON.B.LEAD = delay;
2207 asclin->LIN.BTIMER.B.BREAK = length;
2213 asclin->LIN.HTIMER.B.HEADER = timeout;
2219 asclin->LIN.CON.B.MS = mode;
2225 asclin->DATCON.B.RM = mode;
2231 asclin->DATCON.B.RESPONSE =
__minu(threshold, 256);
2237 asclin->BRG.B.NUMERATOR = numerator;
2243 asclin->BITCON.B.OVERSAMPLING = ovsFactor;
2249 asclin->FRAMECON.B.ODD = type;
2255 asclin->BITCON.B.PRESCALER = prescaler - 1;
2261 asclin->IOCR.B.RCPOL = rcpol;
2267 asclin->RXFIFOCON.B.BUF = mode;
2273 asclin->RXFIFOCON.B.INTLEVEL =
__minu(level, 15);
2279 asclin->RXFIFOCON.B.OUTW = width;
2285 asclin->IOCR.B.ALTI = alti;
2291 asclin->BITCON.B.SM = medianFilter;
2297 asclin->BITCON.B.SAMPLEPOINT =
__minu(spPosition, asclin->BITCON.B.OVERSAMPLING);
2303 asclin->FRAMECON.B.MSB = dir;
2309 asclin->IOCR.B.SPOL = spol;
2317 asclin->CLC.B.EDIS = mode;
2324 asclin->FRAMECON.B.STOP = stopBit;
2330 asclin->FLAGSSET.B.THRQS = 1;
2336 asclin->FLAGSSET.B.TRRQS = 1;
2342 asclin->FLAGSSET.B.TWRQS = 1;
2348 asclin->TXFIFOCON.B.INW = width;
2354 asclin->TXFIFOCON.B.INTLEVEL =
__minu(level, 15);
2360 asclin->TXDATA.U = data;