⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 lib_at91sam9260_h.html

📁 ATMEL AT91SAM9260的中段控制程序!
💻 HTML
📖 第 1 页 / 共 5 页
字号:

<font color=#B22222>//*----------------------------------------------------------------------------</font>
<font color=#B22222>//* \fn    <b><a name="AT91F_EBI_DisableSDRAMC">AT91F_EBI_DisableSDRAMC</a></b></font>
<font color=#B22222>//* \brief Disable the Chip Select of the SDRAM Controller</font>
<font color=#B22222>//*----------------------------------------------------------------------------</font>
__inline <font color=#0000FF>void</font> <a href="#AT91F_EBI_DisableSDRAMC">AT91F_EBI_DisableSDRAMC</a> (
        <a href="AT91SAM9260_h.html#AT91PS_CCFG">AT91PS_CCFG</a> pCCFG)

{
    pCCFG-><a href="AT91SAM9260_CCFG.html#CCFG_EBICSA">CCFG_EBICSA</a> &= ~<a href="AT91SAM9260_h.html#AT91C_EBI_CS1A_SDRAMC">AT91C_EBI_CS1A_SDRAMC</a>;
}

<font color=#B22222>//*----------------------------------------------------------------------------</font>
<font color=#B22222>//* \fn    <b><a name="AT91F_EBI_EnableSM_On_CS3">AT91F_EBI_EnableSM_On_CS3</a></b></font>
<font color=#B22222>//* \brief Enable the Chip Select 3 <font color=#0000FF>for</font> CF Controller</font>
<font color=#B22222>//*----------------------------------------------------------------------------</font>
__inline <font color=#0000FF>void</font> <a href="#AT91F_EBI_EnableSM_On_CS3">AT91F_EBI_EnableSM_On_CS3</a> (
        <a href="AT91SAM9260_h.html#AT91PS_CCFG">AT91PS_CCFG</a> pCCFG)
{
    pCCFG-><a href="AT91SAM9260_CCFG.html#CCFG_EBICSA">CCFG_EBICSA</a> |= <a href="AT91SAM9260_h.html#AT91C_EBI_CS3A_SM">AT91C_EBI_CS3A_SM</a>;
}

<font color=#B22222>//*----------------------------------------------------------------------------</font>
<font color=#B22222>//* \fn    <b><a name="AT91F_EBI_DisableSM_On_CS3">AT91F_EBI_DisableSM_On_CS3</a></b></font>
<font color=#B22222>//* \brief Disable the Chip Select 3 <font color=#0000FF>for</font> CF Controller</font>
<font color=#B22222>//*----------------------------------------------------------------------------</font>
__inline <font color=#0000FF>void</font> <a href="#AT91F_EBI_DisableSM_On_CS3">AT91F_EBI_DisableSM_On_CS3</a> (
        <a href="AT91SAM9260_h.html#AT91PS_CCFG">AT91PS_CCFG</a> pCCFG)

{
    pCCFG-><a href="AT91SAM9260_CCFG.html#CCFG_EBICSA">CCFG_EBICSA</a> &= ~<a href="AT91SAM9260_h.html#AT91C_EBI_CS3A_SM">AT91C_EBI_CS3A_SM</a>;
}

<font color=#B22222>//*----------------------------------------------------------------------------</font>
<font color=#B22222>//* \fn    <b><a name="AT91F_EBI_EnableCF_On_CS4">AT91F_EBI_EnableCF_On_CS4</a></b></font>
<font color=#B22222>//* \brief Enable the Chip Select 4 <font color=#0000FF>for</font> CF Controller</font>
<font color=#B22222>//*----------------------------------------------------------------------------</font>
__inline <font color=#0000FF>void</font> <a href="#AT91F_EBI_EnableCF_On_CS4">AT91F_EBI_EnableCF_On_CS4</a> (
        <a href="AT91SAM9260_h.html#AT91PS_CCFG">AT91PS_CCFG</a> pCCFG)

{
    pCCFG-><a href="AT91SAM9260_CCFG.html#CCFG_EBICSA">CCFG_EBICSA</a> |= <a href="AT91SAM9260_h.html#AT91C_EBI_CS4A_CF">AT91C_EBI_CS4A_CF</a>;
}

<font color=#B22222>//*----------------------------------------------------------------------------</font>
<font color=#B22222>//* \fn    <b><a name="AT91F_EBI_DisableCF_On_CS4">AT91F_EBI_DisableCF_On_CS4</a></b></font>
<font color=#B22222>//* \brief Disable the Chip Select 4 <font color=#0000FF>for</font> CF Controller</font>
<font color=#B22222>//*----------------------------------------------------------------------------</font>
__inline <font color=#0000FF>void</font> <a href="#AT91F_EBI_DisableCF_On_CS4">AT91F_EBI_DisableCF_On_CS4</a> (
        <a href="AT91SAM9260_h.html#AT91PS_CCFG">AT91PS_CCFG</a> pCCFG)

{
    pCCFG-><a href="AT91SAM9260_CCFG.html#CCFG_EBICSA">CCFG_EBICSA</a> &= ~<a href="AT91SAM9260_h.html#AT91C_EBI_CS4A_CF">AT91C_EBI_CS4A_CF</a>;
}

<font color=#B22222>//*----------------------------------------------------------------------------</font>
<font color=#B22222>//* \fn    <b><a name="AT91F_EBI_EnableCF_On_CS5">AT91F_EBI_EnableCF_On_CS5</a></b></font>
<font color=#B22222>//* \brief Enable the Chip Select 5 <font color=#0000FF>for</font> CF Controller</font>
<font color=#B22222>//*----------------------------------------------------------------------------</font>
__inline <font color=#0000FF>void</font> <a href="#AT91F_EBI_EnableCF_On_CS5">AT91F_EBI_EnableCF_On_CS5</a> (
        <a href="AT91SAM9260_h.html#AT91PS_CCFG">AT91PS_CCFG</a> pCCFG)

{
    pCCFG-><a href="AT91SAM9260_CCFG.html#CCFG_EBICSA">CCFG_EBICSA</a> |= <a href="AT91SAM9260_h.html#AT91C_EBI_CS5A_CF">AT91C_EBI_CS5A_CF</a>;
}

<font color=#B22222>//*----------------------------------------------------------------------------</font>
<font color=#B22222>//* \fn    <b><a name="AT91F_EBI_DisableCF_On_CS5">AT91F_EBI_DisableCF_On_CS5</a></b></font>
<font color=#B22222>//* \brief Disable the Chip Select 5 <font color=#0000FF>for</font> CF Controller</font>
<font color=#B22222>//*----------------------------------------------------------------------------</font>
__inline <font color=#0000FF>void</font> <a href="#AT91F_EBI_DisableCF_On_CS5">AT91F_EBI_DisableCF_On_CS5</a> (
        <a href="AT91SAM9260_h.html#AT91PS_CCFG">AT91PS_CCFG</a> pCCFG)

{
    pCCFG-><a href="AT91SAM9260_CCFG.html#CCFG_EBICSA">CCFG_EBICSA</a> &= ~<a href="AT91SAM9260_h.html#AT91C_EBI_CS5A_CF">AT91C_EBI_CS5A_CF</a>;
}

<font color=#B22222>//*----------------------------------------------------------------------------</font>
<font color=#B22222>//* \fn    <b><a name="AT91F_EBI_EnableEBIPULLUP">AT91F_EBI_EnableEBIPULLUP</a></b></font>
<font color=#B22222>//* \brief Enable the <a href="AT91SAM9260_EBI.html#EBI">EBI</a> PULLUP</font>
<font color=#B22222>//*----------------------------------------------------------------------------</font>
__inline <font color=#0000FF>void</font> <a href="#AT91F_EBI_EnableEBIPULLUP">AT91F_EBI_EnableEBIPULLUP</a> (
        <a href="AT91SAM9260_h.html#AT91PS_CCFG">AT91PS_CCFG</a> pCCFG)

{
    pCCFG-><a href="AT91SAM9260_CCFG.html#CCFG_EBICSA">CCFG_EBICSA</a> |= <a href="AT91SAM9260_h.html#AT91C_EBI_DBPUC">AT91C_EBI_DBPUC</a>;
}

<font color=#B22222>//*----------------------------------------------------------------------------</font>
<font color=#B22222>//* \fn    <b><a name="AT91F_EBI_DisableEBIPULLUP">AT91F_EBI_DisableEBIPULLUP</a></b></font>
<font color=#B22222>//* \brief Disable the <a href="AT91SAM9260_EBI.html#EBI">EBI</a> PULLUP</font>
<font color=#B22222>//*----------------------------------------------------------------------------</font>
__inline <font color=#0000FF>void</font> <a href="#AT91F_EBI_DisableEBIPULLUP">AT91F_EBI_DisableEBIPULLUP</a> (
        <a href="AT91SAM9260_h.html#AT91PS_CCFG">AT91PS_CCFG</a> pCCFG)

{
    pCCFG-><a href="AT91SAM9260_CCFG.html#CCFG_EBICSA">CCFG_EBICSA</a> &= ~<a href="AT91SAM9260_h.html#AT91C_EBI_DBPUC">AT91C_EBI_DBPUC</a>;
}

/* *****************************************************************************
                SOFTWARE API FOR <a href="AT91SAM9260_PDC.html#PDC">PDC</a>
   ***************************************************************************** */
<font color=#B22222>//*----------------------------------------------------------------------------</font>
<font color=#B22222>//* \fn    <b><a name="AT91F_PDC_SetNextRx">AT91F_PDC_SetNextRx</a></b></font>
<font color=#B22222>//* \brief Set the next receive transfer descriptor</font>
<font color=#B22222>//*----------------------------------------------------------------------------</font>
__inline <font color=#0000FF>void</font> <a href="#AT91F_PDC_SetNextRx">AT91F_PDC_SetNextRx</a> (
	<a href="AT91SAM9260_h.html#AT91PS_PDC">AT91PS_PDC</a> pPDC,     <font color=#B22222>// \arg pointer to a <a href="AT91SAM9260_PDC.html#PDC">PDC</a> controller</font>
	<font color=#0000FF>char</font> *address,       <font color=#B22222>// \arg address to the next bloc to be received</font>
	<font color=#0000FF>unsigned</font> <font color=#0000FF>int</font> bytes)  <font color=#B22222>// \arg number of bytes to be received</font>
{
	pPDC-><a href="AT91SAM9260_PDC.html#PDC_RNPR">PDC_RNPR</a> = (<font color=#0000FF>unsigned</font> <font color=#0000FF>int</font>) address;
	pPDC-><a href="AT91SAM9260_PDC.html#PDC_RNCR">PDC_RNCR</a> = bytes;
}

<font color=#B22222>//*----------------------------------------------------------------------------</font>
<font color=#B22222>//* \fn    <b><a name="AT91F_PDC_SetNextTx">AT91F_PDC_SetNextTx</a></b></font>
<font color=#B22222>//* \brief Set the next transmit transfer descriptor</font>
<font color=#B22222>//*----------------------------------------------------------------------------</font>
__inline <font color=#0000FF>void</font> <a href="#AT91F_PDC_SetNextTx">AT91F_PDC_SetNextTx</a> (
	<a href="AT91SAM9260_h.html#AT91PS_PDC">AT91PS_PDC</a> pPDC,       <font color=#B22222>// \arg pointer to a <a href="AT91SAM9260_PDC.html#PDC">PDC</a> controller</font>
	<font color=#0000FF>char</font> *address,         <font color=#B22222>// \arg address to the next bloc to be transmitted</font>
	<font color=#0000FF>unsigned</font> <font color=#0000FF>int</font> bytes)    <font color=#B22222>// \arg number of bytes to be transmitted</font>
{
	pPDC-><a href="AT91SAM9260_PDC.html#PDC_TNPR">PDC_TNPR</a> = (<font color=#0000FF>unsigned</font> <font color=#0000FF>int</font>) address;
	pPDC-><a href="AT91SAM9260_PDC.html#PDC_TNCR">PDC_TNCR</a> = bytes;
}

<font color=#B22222>//*----------------------------------------------------------------------------</font>
<font color=#B22222>//* \fn    <b><a name="AT91F_PDC_SetRx">AT91F_PDC_SetRx</a></b></font>
<font color=#B22222>//* \brief Set the receive transfer descriptor</font>
<font color=#B22222>//*----------------------------------------------------------------------------</font>
__inline <font color=#0000FF>void</font> <a href="#AT91F_PDC_SetRx">AT91F_PDC_SetRx</a> (
	<a href="AT91SAM9260_h.html#AT91PS_PDC">AT91PS_PDC</a> pPDC,       <font color=#B22222>// \arg pointer to a <a href="AT91SAM9260_PDC.html#PDC">PDC</a> controller</font>
	<font color=#0000FF>char</font> *address,         <font color=#B22222>// \arg address to the next bloc to be received</font>
	<font color=#0000FF>unsigned</font> <font color=#0000FF>int</font> bytes)    <font color=#B22222>// \arg number of bytes to be received</font>
{
	pPDC-><a href="AT91SAM9260_PDC.html#PDC_RPR">PDC_RPR</a> = (<font color=#0000FF>unsigned</font> <font color=#0000FF>int</font>) address;
	pPDC-><a href="AT91SAM9260_PDC.html#PDC_RCR">PDC_RCR</a> = bytes;
}

<font color=#B22222>//*----------------------------------------------------------------------------</font>
<font color=#B22222>//* \fn    <b><a name="AT91F_PDC_SetTx">AT91F_PDC_SetTx</a></b></font>
<font color=#B22222>//* \brief Set the transmit transfer descriptor</font>
<font color=#B22222>//*----------------------------------------------------------------------------</font>
__inline <font color=#0000FF>void</font> <a href="#AT91F_PDC_SetTx">AT91F_PDC_SetTx</a> (
	<a href="AT91SAM9260_h.html#AT91PS_PDC">AT91PS_PDC</a> pPDC,       <font color=#B22222>// \arg pointer to a <a href="AT91SAM9260_PDC.html#PDC">PDC</a> controller</font>
	<font color=#0000FF>char</font> *address,         <font color=#B22222>// \arg address to the next bloc to be transmitted</font>
	<font color=#0000FF>unsigned</font> <font color=#0000FF>int</font> bytes)    <font color=#B22222>// \arg number of bytes to be transmitted</font>
{
	pPDC-><a href="AT91SAM9260_PDC.html#PDC_TPR">PDC_TPR</a> = (<font color=#0000FF>unsigned</font> <font color=#0000FF>int</font>) address;
	pPDC-><a href="AT91SAM9260_PDC.html#PDC_TCR">PDC_TCR</a> = bytes;
}

<font color=#B22222>//*----------------------------------------------------------------------------</font>
<font color=#B22222>//* \fn    <b><a name="AT91F_PDC_EnableTx">AT91F_PDC_EnableTx</a></b></font>
<font color=#B22222>//* \brief Enable transmit</font>
<font color=#B22222>//*----------------------------------------------------------------------------</font>
__inline <font color=#0000FF>void</font> <a href="#AT91F_PDC_EnableTx">AT91F_PDC_EnableTx</a> (
	<a href="AT91SAM9260_h.html#AT91PS_PDC">AT91PS_PDC</a> pPDC )       <font color=#B22222>// \arg pointer to a <a href="AT91SAM9260_PDC.html#PDC">PDC</a> controller</font>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -