34 #define MAKE_CHANNEL(CHANNEL_NAME,BASE_ADDRESS_NAME,REGISTER_MAP_NAME,...) \ 35 [oC_Channel_(CHANNEL_NAME)] = { \ 36 .BaseAddress = oC_BaseAddress_(BASE_ADDRESS_NAME),\ 37 .PowerBaseAddress = oC_PowerBaseAddress_(BASE_ADDRESS_NAME),\ 38 .PowerOffset = oC_PowerOffset_(BASE_ADDRESS_NAME),\ 39 .PowerBitIndex = oC_PowerBit_(BASE_ADDRESS_NAME),\ 40 .RegisterMap = oC_RegisterMap_(REGISTER_MAP_NAME),\ 41 .ChannelName = #CHANNEL_NAME ,\ 52 #define _________________________________________INTERFACE_FUNCTIONS_SECTION________________________________________________________________ 72 if(interruptData !=
NULL)
98 if(interruptData !=
NULL)
122 bool success =
false;
125 if(interruptData !=
NULL)
149 bool success =
false;
152 if(interruptData !=
NULL)
160 #undef _________________________________________INTERFACE_FUNCTIONS_SECTION________________________________________________________________ const oC_ChannelData_t oC_ChannelsData[]
stores data of channels
bool oC_MCS_SetInterruptPriority(IRQn_Type InterruptNumber, oC_InterruptPriotity_t Priority)
sets interrupt priority
oC_InterruptPriotity_t
stores priority of interrupts
bool oC_Channel_EnableInterruptFunction(oC_Channel_t Channel, oC_InterruptType_t InterruptType)
enables interrupt according to channel and type
bool oC_MCS_EnableInterrupt(IRQn_Type InterruptNumber)
enables interrupt with specified number
structure with data for interrupts
const oC_InterruptData_t * oC_Interrupt_GetData(oC_InterruptBaseAddress_t BaseAddress, oC_InterruptType_t InterruptType)
returns data pointer for interrupt
#define oC_Channel_GetBaseAddress(Channel)
returns base address assigned to the channel
oC_Channel_t
stores machine channel
bool oC_MCS_IsInterruptEnabled(IRQn_Type InterruptNumber)
checks if interrupt is enabled
bool oC_Channel_IsInterruptEnabledFunction(oC_Channel_t Channel, oC_InterruptType_t InterruptType)
checks if interrupt is enabled according to channel and type
oC_InterruptType_t
Stores interrupt type.
bool oC_Channel_DisableInterruptFunction(oC_Channel_t Channel, oC_InterruptType_t InterruptType)
disables interrupt according to channel and type
Contains machine core specific 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
#define oC_Make_ModuleWithChannels(MODULE_NAME)
makes module with channels. Not for user usage.
bool oC_MCS_DisableInterrupt(IRQn_Type InterruptNumber)
disables interrupt with specified number
The file with interface for Channel module.
#define NULL
pointer to a zero