Modules | Functions
Power

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[])
 

Detailed Description

Sample Code:
pwr.c

Function Documentation

◆ ioThinx_PWR_GetSysStatus()

IOTHINX_ERR ioThinx_PWR_GetSysStatus ( uint32_t  slot,
uint8_t  start,
uint8_t  count,
uint8_t  buf[] 
)
Parameters
[in]slotSlot number of the module.
[in]startSpecifies the start channel.
[in]countThe number of channels to be get.
[out]bufAn array that stores the system power status for the contiguous channels. buf[0] represents the value of the start channel.
Returns
IOTHINX_ERR_OK if everything is ok. Otherwise, refer to the IOTHINX_ERR.

◆ ioThinx_PWR_GetFieldStatus()

IOTHINX_ERR ioThinx_PWR_GetFieldStatus ( uint32_t  slot,
uint8_t  start,
uint8_t  count,
uint8_t  buf[] 
)
Parameters
[in]slotSlot number of the module.
[in]startSpecifies the start channel.
[in]countThe number of channels to be get.
[out]bufAn array that stores the field power status for the contiguous channels. buf[0] represents the value of the start channel.
Returns
IOTHINX_ERR_OK if everything is ok. Otherwise, refer to the IOTHINX_ERR.

◆ ioThinx_PWR_Config_GetAlarms()

IOTHINX_ERR ioThinx_PWR_Config_GetAlarms ( uint32_t  slot,
uint8_t  start,
uint8_t  count,
float  buf[] 
)
Parameters
[in]slotSlot number of the module.
[in]startSpecifies the start channel.
[in]countThe number of channels to be get.
[out]bufAn array that stores the alarm (V) configs for the contiguous channels. Range = 9 ~ 45 (V). buf[0] represents the value of the start channel.
Returns
IOTHINX_ERR_OK if everything is ok. Otherwise, refer to the IOTHINX_ERR.

◆ ioThinx_PWR_Config_SetAlarms()

IOTHINX_ERR ioThinx_PWR_Config_SetAlarms ( uint32_t  slot,
uint8_t  start,
uint8_t  count,
float  buf[] 
)
Parameters
[in]slotSlot number of the module.
[in]startSpecifies the start channel.
[in]countThe number of channels to be get.
[in]bufAn array that stores the alarm (V) configs for the contiguous channels. Range = 9 ~ 45 (V). buf[0] represents the value of the start channel.
Returns
IOTHINX_ERR_OK if everything is ok. Otherwise, refer to the IOTHINX_ERR.