|
|
@@ -441,6 +441,8 @@ void cascade_slave_write(uint32_t addr, uint16_t val)
|
|
|
if((start_chn+1) == _globalPowerMangerTemp->product_ch_id)
|
|
|
{
|
|
|
int ret = 0;
|
|
|
+
|
|
|
+ _globalPowerMangerTemp->product_ch_start_delay = val;
|
|
|
if (__globalDeviceManage._global_device_info->product_pwr_type == SmartPDU_Tree_AC_Tree)
|
|
|
{
|
|
|
ret = g_switch_set_t_ac_start_time_delay(&__globalDeviceManage._globalRelaySampManger,
|
|
|
@@ -475,6 +477,8 @@ void cascade_slave_write(uint32_t addr, uint16_t val)
|
|
|
if((start_chn+1) == _globalPowerMangerTemp->product_ch_id)
|
|
|
{
|
|
|
int ret = 0;
|
|
|
+
|
|
|
+ _globalPowerMangerTemp->product_ch_stop_delay = val;
|
|
|
if (__globalDeviceManage._global_device_info->product_pwr_type == SmartPDU_Tree_AC_Tree)
|
|
|
{
|
|
|
ret = g_switch_set_t_ac_stop_time_delay(&__globalDeviceManage._globalRelaySampManger,
|
|
|
@@ -509,6 +513,9 @@ void cascade_slave_write(uint32_t addr, uint16_t val)
|
|
|
{
|
|
|
int t_ac_CtrlType=0;
|
|
|
int nRet = 0;
|
|
|
+
|
|
|
+ _globalPowerMangerTemp->product_ch_status = val;
|
|
|
+
|
|
|
GlobalTreeACManager *_globalTACManager = NULL;
|
|
|
list_for_each_entry(_globalTACManager, &_globalPowerMangerTemp->list_Tree_AC, list_Tree_AC)
|
|
|
{
|
|
|
@@ -535,6 +542,7 @@ void cascade_slave_write(uint32_t addr, uint16_t val)
|
|
|
}else{
|
|
|
phsts=0;
|
|
|
}
|
|
|
+
|
|
|
nRet= g_switch_set_t_ac_phchn_ctrl(&__globalDeviceManage._globalRelaySampManger,
|
|
|
_globalTACManager->product_saddr,
|
|
|
_globalTACManager->product_ch_addr - 1,
|
|
|
@@ -588,6 +596,8 @@ void cascade_slave_write(uint32_t addr, uint16_t val)
|
|
|
{
|
|
|
if (_globalPowerMangerTemp == NULL)
|
|
|
break;
|
|
|
+
|
|
|
+ _globalPowerMangerTemp->product_ch_status = val;
|
|
|
int rec = g_switch_set_all_ctrl(&__globalDeviceManage._globalRelaySampManger, _globalPowerMangerTemp->product_ch_type, _globalPowerMangerTemp->product_saddr, val);
|
|
|
// printf("rec = %d 0x%x\n",rec,val);
|
|
|
}
|