Hotswap sensors implementation.  
More...
#include "FreeRTOS.h"
#include "task.h"
#include "semphr.h"
#include "port.h"
#include "sdr.h"
#include "hotswap.h"
#include "task_priorities.h"
#include "ipmi.h"
#include "led.h"
#include "board_led.h"
#include "fru.h"
#include "utils.h"
#include "uart_debug.h"
#include "payload.h"
 
Hotswap sensors implementation. 
- Author
 - Henrique Silva henri.nosp@m.que..nosp@m.silva.nosp@m.@lnl.nosp@m.s.br, LNLS
 
 
◆ hotswap_clear_mask_bit()
      
        
          | void hotswap_clear_mask_bit  | 
          ( | 
          uint8_t |           fru,  | 
        
        
           | 
           | 
          uint8_t |           mask ) | 
        
      
 
Clears the corresponding status bit in the Hotswap SDR readout value. 
- Parameters
 - 
  
    | fru | FRU ID that identifies the owner of the sensor  | 
    | mask | Bit position to clear | 
  
   
- Returns
 - None 
 
 
 
◆ hotswap_init()
      
        
          | void hotswap_init  | 
          ( | 
          void |            | ) | 
           | 
        
      
 
Initializes hotswap sensor informatiosn on SDR and creates vTaskHotSwap. 
- Returns
 - None 
 
 
 
◆ hotswap_send_event()
Send a hotswap event via IPMB. 
- Parameters
 - 
  
    | sensor | Pointer to current Hotswap sensor structure  | 
    | evt | Event to be sent | 
  
   
- Returns
 - IPMB layer error 
 
- See also
 - ipmb.c 
 
 
 
◆ hotswap_set_mask_bit()
      
        
          | void hotswap_set_mask_bit  | 
          ( | 
          uint8_t |           fru,  | 
        
        
           | 
           | 
          uint8_t |           mask ) | 
        
      
 
Sets the corresponding status bit in the Hotswap SDR readout value. 
- Parameters
 - 
  
    | fru | FRU ID that identifies the owner of the sensor  | 
    | mask | Bit position to set | 
  
   
- Returns
 - None 
 
 
 
◆ vTaskHotSwap()
      
        
          | void vTaskHotSwap  | 
          ( | 
          void * |           Parameters | ) | 
           | 
        
      
 
Periodically reads the Hotswap sensor state and checks if its state has changed. 
- Parameters
 - 
  
    | Parameters | Pointer to parameter list passed to task upon initialization (not used here)  | 
  
   
 
 
◆ hotswap_amc_pSDR
◆ hotswap_amc_sensor
◆ hotswap_rtm_pSDR
◆ hotswap_rtm_sensor
◆ vTaskHotSwap_Handle
      
        
          | TaskHandle_t vTaskHotSwap_Handle |