20 #ifdef DRV_MLED_MODULE_ENABLED 42 #ifndef DRV_HANDLE_CHECK_INACTIVE 43 #define DRV_HANDLE_CHECK(handle);\ 45 return DRV_ERROR_PARAM; \ 47 if((handle)->ptDevice==0){ \ 48 return DRV_ERROR_PARAM; \ 51 #define DRV_HANDLE_CHECK(handle) ; 94 ptDriver->
ptDevice = s_apChannelDeviceAddressTable[0];
184 unsigned int ulRegister;
235 unsigned int ulRegister;
240 ulRegister &= ~uMask;
241 ulRegister |= uMledMSK;
254 unsigned int ulRegister;
258 ulRegister |= uMledMSK;
271 unsigned int ulRegister;
275 ulRegister &= ~uMledMSK;
#define DRV_MLED_DEVICE_LIST
uint32_t DRV_MLED_ID_T
Type definition analog to the dio definition for the mleds by id.
DRV_STATUS_E DRV_MLED_ChannelOutReset(DRV_MLED_HANDLE_T *const ptDriver, DRV_MLED_ID_T uMledID)
Sets the MLED to reset.
#define DRV_LOCK_INITIALIZER
Initializer of the type to be locked as rvalue is in default the mutex initializer.
The handle of the driver.
mled_ctrl_app (mled_ctrl_app)
DRV_MLED_PRESCALE_BORDER_E ePrescaleBorder
DRV_MLED_MODE_E
The MLED modes.
DRV_STATUS_E DRV_MLED_LineMaskedSet(DRV_MLED_HANDLE_T *const ptDriver, DRV_MLED_MSK_T uMask, DRV_MLED_MSK_T uMledMSK)
Manipulates the mled line and sets the bits given by the mask to the specified value.
DRV_STATUS_E DRV_MLED_ChannelSetBrightness(DRV_MLED_HANDLE_T *const ptDriver, DRV_MLED_ID_T uMledID, DRV_MLED_BRIGHTNESS_E uBrightness)
Sets the brightness of the MLED.
__IOM uint32_t mled_ctrl_app_output_on_time[16]
DRV_MLED_BRIGHTNESS_E eBrightnessDefault
DRV_STATUS_E DRV_MLED_ChannelOutSet(DRV_MLED_HANDLE_T *const ptDriver, DRV_MLED_ID_T uMledID)
Sets the MLED to set.
DRV_MLED_DEVICE_T * ptDevice
DRV_STATUS_E DRV_MLED_ChannelInvert(DRV_MLED_HANDLE_T *const ptDriver, DRV_MLED_ID_T uMledID)
Inverts the MLED.
struct mled_ctrl_app_Type::@5151::@5159 mled_ctrl_app_cfg_b
#define DRV_MLED_DEVICE_COUNT
#define DRV_LOCK(__HANDLE__)
A function calling the trylock of the mutex and returning locked in case it is blocked.
uint32_t DRV_MLED_MSK_T
Type definition analog to the dio definition for the mleds as mask.
DRV_STATUS_E DRV_MLED_ChannelSetMode(DRV_MLED_HANDLE_T *const ptDriver, DRV_MLED_ID_T uMledID, DRV_MLED_MODE_E eMode)
Sets the mode of the MLED.
This file contains all the functions prototypes for the peripheral module driver. ...
DRV_STATUS_E DRV_MLED_LineOutReset(DRV_MLED_HANDLE_T *const ptDriver, DRV_MLED_MSK_T uMledMSK)
Manipulates the MLED line and resets the given bits.
DRV_MLED_BRIGHTNESS_E
The MLED brightness duty=([value]-1)/255.
DRV_STATUS_E DRV_MLED_DeInit(DRV_MLED_HANDLE_T *const ptDriver)
Deinitializes the mled device and handle.
__IOM uint32_t mled_ctrl_app_output_sel[16]
DRV_STATUS_E DRV_MLED_Init(DRV_MLED_HANDLE_T *const ptDriver)
Initializes the mled device and handle by the given configuration.
#define DRV_HANDLE_CHECK(handle)
DRV_STATUS_E
DRV Status structures definition.
static DRV_MLED_DEVICE_T *const s_apChannelDeviceAddressTable[DRV_MLED_DEVICE_COUNT]
Table of the device addresses.
#define DRV_UNLOCK(__HANDLE__)
The release function used.
DRV_MLED_CONFIGURATION_T tConfiguration
__IOM uint32_t mled_ctrl_app_line0
DRV_STATUS_E DRV_MLED_LineOutSet(DRV_MLED_HANDLE_T *const ptDriver, DRV_MLED_MSK_T uMledMSK)
Manipulates the MLED line and sets the given bits.
__IAR_FT uint32_t __LDREXW(uint32_t volatile *ptr)
DRV_MLED_BLINK_BORDER_E eBlinkBorder
__IAR_FT uint32_t __STREXW(uint32_t value, uint32_t volatile *ptr)