JLab Signal Distribution Switch Slot module
A5
|
Functions | |
int | sdFirmwareFlushFifo () |
Flush the FIFO used in write data to the ROM. More... | |
int | sdFirmwareLoadFile (char *filename) |
Load the specified file containing the firmware, into local memory. More... | |
void | sdFirmwareFreeMemory () |
Free the memory allocated to store the firmware. More... | |
int | sdFirmwareVerifyPage (unsigned int mem_addr) |
Verify the page of data starting a specified memory address. More... | |
int | sdFirmwareVerifyPageZero (unsigned int mem_addr) |
Verify the page of data starting a specified memory address, is zero. More... | |
void | sdFirmwareWritePage (unsigned int mem_addr) |
Write a page of data starting a specified memory address. More... | |
int | sdFirmwareWriteToMemory () |
Write entire firmware to SD's ROM. More... | |
int | sdFirmwareVerifyMemory () |
Verify that SD's ROM contains exactly the contents of the firmware. More... | |
int | sdFirmwareReadStatus () |
Check the read status of the FIFO. More... | |
int | sdFirmwareReadAddr (unsigned int addr) |
Read a specific address from the ROM. More... | |
void | sdFirmwarePrintSpecs () |
Read protected information from the ROM. More... | |
int sdFirmwareFlushFifo | ( | ) |
Flush the FIFO used in write data to the ROM.
References SDStruct::memReadCtrl, SDLOCK, and SDUNLOCK.
void sdFirmwareFreeMemory | ( | ) |
Free the memory allocated to store the firmware.
int sdFirmwareLoadFile | ( | char * | filename | ) |
Load the specified file containing the firmware, into local memory.
filename | Name of file |
References SD_MAX_FIRMWARE_SIZE.
void sdFirmwarePrintSpecs | ( | ) |
Read protected information from the ROM.
Prints to standard out
References sdFirmwareReadAddr().
int sdFirmwareReadAddr | ( | unsigned int | addr | ) |
Read a specific address from the ROM.
References SDStruct::memAddrLSB, SDStruct::memAddrMSB, SDStruct::memReadCtrl, SDLOCK, and SDUNLOCK.
Referenced by sdFirmwarePrintSpecs(), and sdGetSerialNumber().
int sdFirmwareReadStatus | ( | ) |
Check the read status of the FIFO.
References SDStruct::memCheckStatus, SDStruct::memReadCtrl, SDLOCK, and SDUNLOCK.
int sdFirmwareVerifyMemory | ( | ) |
Verify that SD's ROM contains exactly the contents of the firmware.
References SDStruct::memAddrLSB, SDStruct::memAddrMSB, SDStruct::memReadCtrl, SDLOCK, and SDUNLOCK.
int sdFirmwareVerifyPage | ( | unsigned int | mem_addr | ) |
Verify the page of data starting a specified memory address.
mem_addr | Address of memory to check |
References SDStruct::memAddrLSB, SDStruct::memAddrMSB, SDStruct::memReadCtrl, and SDUNLOCK.
Referenced by sdFirmwareWriteToMemory().
int sdFirmwareVerifyPageZero | ( | unsigned int | mem_addr | ) |
Verify the page of data starting a specified memory address, is zero.
mem_addr | Address of memory to check |
References SDStruct::memAddrLSB, SDStruct::memAddrMSB, SDStruct::memReadCtrl, and SDUNLOCK.
Referenced by sdFirmwareWriteToMemory().
void sdFirmwareWritePage | ( | unsigned int | mem_addr | ) |
Write a page of data starting a specified memory address.
mem_addr | Address of memory to write |
References SDStruct::memAddrLSB, SDStruct::memAddrMSB, and SDStruct::memWriteCtrl.
Referenced by sdFirmwareWriteToMemory().
int sdFirmwareWriteToMemory | ( | ) |
Write entire firmware to SD's ROM.
References SDStruct::memAddrLSB, SDStruct::memAddrMSB, SDStruct::memWriteCtrl, sdFirmwareVerifyPage(), sdFirmwareVerifyPageZero(), sdFirmwareWritePage(), SDLOCK, and SDUNLOCK.