Choco OS  V.0.16.9.0
Join to the chocolate world
oc_channels.c File Reference

The file with interface for the GPIO driver. More...

#include <oc_channels.h>
#include <stdbool.h>
#include <stddef.h>
#include <oc_assert.h>
#include <oc_mcs.h>

Go to the source code of this file.

Functions

bool oC_Channel_SetInterruptPriorityFunction (oC_Channel_t Channel, oC_InterruptType_t InterruptType, oC_InterruptPriotity_t Priority)
 set interrupt priority according to channel and type More...
 
bool oC_Channel_EnableInterruptFunction (oC_Channel_t Channel, oC_InterruptType_t InterruptType)
 enables interrupt according to channel and type More...
 
bool oC_Channel_DisableInterruptFunction (oC_Channel_t Channel, oC_InterruptType_t InterruptType)
 disables interrupt according to channel and type More...
 
bool oC_Channel_IsInterruptEnabledFunction (oC_Channel_t Channel, oC_InterruptType_t InterruptType)
 checks if interrupt is enabled according to channel and type More...
 

Variables

const oC_ChannelData_t oC_ChannelsData []
 stores data of channels More...
 

Detailed Description


Author
Patryk Kubiak
Note
Copyright (C) 2015 Patryk Kubiak patry.nosp@m.k.ku.nosp@m.biak9.nosp@m.0@gm.nosp@m.ail.c.nosp@m.om

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

Definition in file oc_channels.c.

Function Documentation

bool oC_Channel_DisableInterruptFunction ( oC_Channel_t  Channel,
oC_InterruptType_t  InterruptType 
)

The function is for disabling interrupt according to dynamic channel and interrupt type.

See also
oC_Channel_DisableInterrupt
Parameters
ChannelChannel of the interrupt to disable
InterruptTypeType of interrupt (peripheral interrupt for example)
Returns
true if success

Definition at line 120 of file oc_channels.c.

bool oC_Channel_EnableInterruptFunction ( oC_Channel_t  Channel,
oC_InterruptType_t  InterruptType 
)

The function is for enabling interrupt according to dynamic channel and interrupt type.

See also
oC_Channel_EnableInterrupt
Parameters
ChannelChannel of the interrupt to enable
InterruptTypeType of interrupt (peripheral interrupt for example)
Returns
true if success

Definition at line 93 of file oc_channels.c.

bool oC_Channel_IsInterruptEnabledFunction ( oC_Channel_t  Channel,
oC_InterruptType_t  InterruptType 
)

The function is for checking if interrupt is enabled according to dynamic channel and interrupt type.

See also
oC_Channel_EnableInterrupt
Parameters
ChannelChannel of the interrupt
InterruptTypeType of interrupt (peripheral interrupt for example)
Returns
true if interrupt enabled

Definition at line 147 of file oc_channels.c.

bool oC_Channel_SetInterruptPriorityFunction ( oC_Channel_t  Channel,
oC_InterruptType_t  InterruptType,
oC_InterruptPriotity_t  Priority 
)

The function is for setting interrupt priority according to dynamic channel and interrupt type.

See also
oC_Channel_SetInterruptPriority
Parameters
ChannelChannel of the interrupt to enable
InterruptPriorityInterrupt priority
Returns
true if success

Definition at line 67 of file oc_channels.c.