openMMC
Open Source Modular MMC for AMCs
Loading...
Searching...
No Matches
payload.h File Reference
#include "event_groups.h"
Include dependency graph for payload.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define PAYLOAD_MESSAGE_COLD_RST   (1 << 0)
 
#define PAYLOAD_MESSAGE_WARM_RST   (1 << 1)
 
#define PAYLOAD_MESSAGE_REBOOT   (1 << 2)
 
#define PAYLOAD_MESSAGE_QUIESCE   (1 << 3)
 
#define PAYLOAD_MESSAGE_RTM_ENABLE   (1 << 4)
 
#define PAYLOAD_MESSAGE_DCDC_PGOOD   (1 << 5)
 
#define PAYLOAD_MESSAGE_DCDC_PGOODn   (1 << 6)
 
#define PAYLOAD_MESSAGE_CLOCK_CONFIG   (1 << 7)
 
#define PAYLOAD_BASE_DELAY   100
 Payload task unblock delay.
 

Enumerations

enum  {
  PAYLOAD_NO_POWER = 0 , PAYLOAD_POWER_GOOD_WAIT , PAYLOAD_STATE_FPGA_SETUP , PAYLOAD_FPGA_ON ,
  PAYLOAD_SWITCHING_OFF , PAYLOAD_QUIESCED , PAYLOAD_RESET , PAYLOAD_MAX_STATES
}
 Payload state machine state numbers. More...
 

Functions

void payload_send_message (uint8_t fru_id, EventBits_t msg)
 Sends a message to the payload task.
 
void vTaskPayload (void *pvParameters)
 Payload Control task.
 
void payload_init (void)
 Creates Payload Control task and initializes the board's needed hardware.
 

Variables

enum { ... }  payload_state
 Payload state machine state numbers.
 
TaskHandle_t vTaskPayload_Handle
 Payload task handle variable.