~~NOTOC~~
[[log_management_api]] > [[BS2_GetAllDeviceIOStatus]]
----
===== BS2_GetAllDeviceIOStatus =====
[+ 2.9.12] Gets the current I/O port status of the device and slave devices. \\
==== Declaration ====
#include "BS_API.h"
int BS2_GetAllDeviceIOStatus(void* context, BS2_DEVICE_ID deviceId, BS2IOStatus** statusObj, uint32_t* numOfStatus);
[[Log_Management_API#BS2IOStatus|View BS2IOStatus structure]]
==== Parameters ====
* [In] ''//context//'' : Context
* [In] ''//deviceId//'' : Device ID
* [Out] ''//statusObj//'' : Structure pointer to store IO status information acquired from the device.
* [Out] ''//numOfStatus//'' : Number of IO status information acquired from the device
**Note**\\
The statusObj variable must return memory to the system through the [[BS2_ReleaseObject]] function after use.
==== Return Value ====
Returns ''BS_SDK_SUCCESS'' when performed successfully, and returns the corresponding error code when an error occurs.
==== See Also ====
[[BS2_GetDeviceIOStatus]]