110 #include "PE_Types.h"
111 #include "PE_Error.h"
112 #include "PE_Const.h"
124 #ifndef __BWUserType_BMTimer1_TValueType
125 #define __BWUserType_BMTimer1_TValueType
128 #define BMTimer1_CNT_INP_FREQ_U_0 0x016E3600UL
129 #define BMTimer1_CNT_INP_FREQ_R_0 23999808.00153599F
130 #define BMTimer1_CNT_INP_FREQ_COUNT 0U
131 #define BMTimer1_PERIOD_TICKS 0x016E3600UL
132 #define BMTimer1_NUMBER_OF_CHANNELS 0x00U
133 #define BMTimer1_COUNTER_WIDTH 0x20U
134 #define BMTimer1_COUNTER_DIR DIR_DOWN
136 #define BMTimer1_PRPH_BASE_ADDRESS 0x40037000U
139 #define BMTimer1_Init_METHOD_ENABLED
140 #define BMTimer1_Deinit_METHOD_ENABLED
141 #define BMTimer1_Enable_METHOD_ENABLED
142 #define BMTimer1_Disable_METHOD_ENABLED
143 #define BMTimer1_SetPeriodTicks_METHOD_ENABLED
144 #define BMTimer1_GetPeriodTicks_METHOD_ENABLED
145 #define BMTimer1_ResetCounter_METHOD_ENABLED
146 #define BMTimer1_GetCounterValue_METHOD_ENABLED
149 #define BMTimer1_OnCounterRestart_EVENT_ENABLED
LDD_TDeviceData * BMTimer1_Init(LDD_TUserData *UserDataPtr)
Initializes the device. Allocates memory for the device data structure, allocates interrupt vectors a...
LDD_TError BMTimer1_ResetCounter(LDD_TDeviceData *DeviceDataPtr)
Resets counter. If counter is counting up then it is set to zero. If counter is counting down then co...
void BMTimer1_Interrupt(LDD_RTOS_TISRParameter _isrParameter)
uint32_t BMTimer1_TValueType
LDD_TError BMTimer1_Enable(LDD_TDeviceData *DeviceDataPtr)
Enables the component - it starts the signal generation. Events may be generated (see SetEventMask)...
BMTimer1_TValueType BMTimer1_GetCounterValue(LDD_TDeviceData *DeviceDataPtr)
Returns the content of counter register. This method can be used both if counter is enabled and if co...
void BMTimer1_Deinit(LDD_TDeviceData *DeviceDataPtr)
Deinitializes the device. Switches off the device, frees the device data structure memory...
LDD_TError BMTimer1_GetPeriodTicks(LDD_TDeviceData *DeviceDataPtr, BMTimer1_TValueType *TicksPtr)
Returns the number of counter ticks before re-initialization. See also method [SetPeriodTicks]. This method is available only if the property ["Counter restart"] is switched to 'on-match' value.
LDD_TError BMTimer1_Disable(LDD_TDeviceData *DeviceDataPtr)
Disables the component - it stops signal generation and events calling. The method is not available i...
LDD_TError BMTimer1_SetPeriodTicks(LDD_TDeviceData *DeviceDataPtr, BMTimer1_TValueType Ticks)
The method sets timer re-initialization period (in timer ticks). This method is available only if the...