Modules | |
| PWR_STATUS | |
Functions | |
| IOTHINX_ERR | ioThinx_PWR_GetSysStatus (uint32_t slot, uint8_t start, uint8_t count, uint8_t buf[]) |
| IOTHINX_ERR | ioThinx_PWR_GetFieldStatus (uint32_t slot, uint8_t start, uint8_t count, uint8_t buf[]) |
| IOTHINX_ERR | ioThinx_PWR_Config_GetAlarms (uint32_t slot, uint8_t start, uint8_t count, float buf[]) |
| IOTHINX_ERR | ioThinx_PWR_Config_SetAlarms (uint32_t slot, uint8_t start, uint8_t count, float buf[]) |
Sample Code:
pwr.c
| IOTHINX_ERR ioThinx_PWR_GetSysStatus | ( | uint32_t | slot, |
| uint8_t | start, | ||
| uint8_t | count, | ||
| uint8_t | buf[] | ||
| ) |
| [in] | slot | Slot number of the module. |
| [in] | start | Specifies the start channel. |
| [in] | count | The number of channels to be get. |
| [out] | buf | An array that stores the system power status for the contiguous channels. buf[0] represents the value of the start channel. |
| IOTHINX_ERR ioThinx_PWR_GetFieldStatus | ( | uint32_t | slot, |
| uint8_t | start, | ||
| uint8_t | count, | ||
| uint8_t | buf[] | ||
| ) |
| [in] | slot | Slot number of the module. |
| [in] | start | Specifies the start channel. |
| [in] | count | The number of channels to be get. |
| [out] | buf | An array that stores the field power status for the contiguous channels. buf[0] represents the value of the start channel. |
| IOTHINX_ERR ioThinx_PWR_Config_GetAlarms | ( | uint32_t | slot, |
| uint8_t | start, | ||
| uint8_t | count, | ||
| float | buf[] | ||
| ) |
| [in] | slot | Slot number of the module. |
| [in] | start | Specifies the start channel. |
| [in] | count | The number of channels to be get. |
| [out] | buf | An array that stores the alarm (V) configs for the contiguous channels. Range = 9 ~ 45 (V). buf[0] represents the value of the start channel. |
| IOTHINX_ERR ioThinx_PWR_Config_SetAlarms | ( | uint32_t | slot, |
| uint8_t | start, | ||
| uint8_t | count, | ||
| float | buf[] | ||
| ) |
| [in] | slot | Slot number of the module. |
| [in] | start | Specifies the start channel. |
| [in] | count | The number of channels to be get. |
| [in] | buf | An array that stores the alarm (V) configs for the contiguous channels. Range = 9 ~ 45 (V). buf[0] represents the value of the start channel. |