2 lightbar_driveruninit, 3 lightbar_deviceinit, 4 lightbar_deviceclose – IEI Integration AFL2-17A-H61 v1.02 User Manual
Page 42: 2 lightbar_drive run in it, 3 lightbar_de vic e in it, 4 lightbar_de vic e clo s e

AFL2-17A/AB-H61
P a g e 23
Return value:
This function can return a handle of a device.
Remarks:
Call this function to initialize the LED driver and obtain a control handle from the
LED driver.
2.4.2.2 LIGHTBAR_Drive rUn in it
Syntax:
PACSM_LIGHTBAR_CTRL STD_Void LIGHTBAR_DriverUninit(HANDLE hDev)
Parameters:
hDev [IN] – enter a handle that you want to delete
Return value:
None
Remarks:
Call this function to delete a handle to the LED driver. Resources are released.
2.4.2.3 LIGHTBAR_De vic e In it
Syntax:
PACSM_LIGHTBAR_CTRL STD_BOOLEN LIGHTBAR_DeviceInit(HANDLE hDev)
Parameters:
hDev [IN] – enter a device handle
Return value:
If it is initialized successfully, it returns TRUE.
Remarks:
Call this function to initialize a LED device.
2.4.2.4 LIGHTBAR_De vic e Clo s e
Syntax:
PACSM_LIGHTBAR_CTRL STD_BOOLEN LIGHTBAR_DeviceClose(HANDLE hDev)
Parameters:
hDev [IN] – enter a device handle
Return value:
If it is initialized successfully, it returns TRUE.
Remarks:
Call this function to close all hardware control.