Hilscher netX microcontroller driver
V0.0.5.0
Documentation of the netX driver package
|
The MLED driver, defined by DRV_MLED_HANDLE_T. More...
Data Structures | |
struct | DRV_MLED_CONFIGURATION_T |
The configuration of the driver. More... | |
struct | DRV_MLED_HANDLE_T |
The handle of the driver. More... | |
Macros | |
#define | DRV_HANDLE_CHECK(handle) |
Typedefs | |
typedef uint32_t | DRV_MLED_MSK_T |
Type definition analog to the dio definition for the mleds as mask. More... | |
typedef uint32_t | DRV_MLED_ID_T |
Type definition analog to the dio definition for the mleds by id. More... | |
Variables | |
static DRV_MLED_DEVICE_T *const | s_apChannelDeviceAddressTable [DRV_MLED_DEVICE_COUNT] = DRV_MLED_DEVICE_LIST |
Table of the device addresses. More... | |
The MLED driver, defined by DRV_MLED_HANDLE_T.
#define DRV_HANDLE_CHECK | ( | handle | ) |
Define for checking the consistency of the handle or static representation of the driver.
Definition at line 43 of file netx_drv_mled.c.
typedef uint32_t DRV_MLED_ID_T |
Type definition analog to the dio definition for the mleds by id.
Definition at line 48 of file netx_drv_mled.h.
typedef uint32_t DRV_MLED_MSK_T |
Type definition analog to the dio definition for the mleds as mask.
Definition at line 43 of file netx_drv_mled.h.
The MLED blink counter border as f_blink = 50 Hz / (blink_counter_border)
Definition at line 66 of file netx_drv_mled.h.
The MLED brightness duty=([value]-1)/255.
Definition at line 79 of file netx_drv_mled.h.
enum DRV_MLED_MODE_E |
The MLED modes.
Definition at line 94 of file netx_drv_mled.h.
The MLED prescale counter border as f_pwm = f_clk / (512 * (prescale_counter_max + 1))
Definition at line 53 of file netx_drv_mled.h.
DRV_STATUS_E DRV_MLED_ChannelInvert | ( | DRV_MLED_HANDLE_T *const | ptDriver, |
DRV_MLED_ID_T | uMledID | ||
) |
Inverts the MLED.
Definition at line 175 of file netx_drv_mled.c.
DRV_STATUS_E DRV_MLED_ChannelOutReset | ( | DRV_MLED_HANDLE_T *const | ptDriver, |
DRV_MLED_ID_T | uMledID | ||
) |
Sets the MLED to reset.
Definition at line 214 of file netx_drv_mled.c.
DRV_STATUS_E DRV_MLED_ChannelOutSet | ( | DRV_MLED_HANDLE_T *const | ptDriver, |
DRV_MLED_ID_T | uMledID | ||
) |
Sets the MLED to set.
Definition at line 197 of file netx_drv_mled.c.
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.
Definition at line 153 of file netx_drv_mled.c.
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.
Definition at line 131 of file netx_drv_mled.c.
DRV_STATUS_E DRV_MLED_DeInit | ( | DRV_MLED_HANDLE_T *const | ptDriver | ) |
Deinitializes the mled device and handle.
It trys to get a lock on the handle so that it is able to be reset. Then it will reset the nvic, the device states and the context given.
[in,out] | ptDriver | The handle of the driver |
Definition at line 119 of file netx_drv_mled.c.
DRV_STATUS_E DRV_MLED_Init | ( | DRV_MLED_HANDLE_T *const | ptDriver | ) |
Initializes the mled device and handle by the given configuration.
Definition at line 57 of file netx_drv_mled.c.
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.
Definition at line 231 of file netx_drv_mled.c.
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.
Definition at line 267 of file netx_drv_mled.c.
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.
Definition at line 250 of file netx_drv_mled.c.
|
static |
Table of the device addresses.
Used to identify the device addresses by the device id.
Definition at line 37 of file netx_drv_mled.c.