|
CTS-SAT-1-OBC-Firmware
|
#include <stdint.h>

Go to the source code of this file.
Classes | |
| struct | FLASH_SPI_Data_t |
Enumerations | |
| enum | FLASH_error_enum_t { FLASH_ERR_OK = 0 , FLASH_ERR_SPI_TRANSMIT_FAILED = -3 , FLASH_ERR_SPI_RECEIVE_FAILED = -4 , FLASH_ERR_DEVICE_BUSY_TIMEOUT = -6 , FLASH_ERR_UNKNOWN = -7 , FLASH_ERR_STATUS_REG_ERROR = -8 , FLASH_ERR_SPI_TRANSMIT_TIMEOUT = -10 , FLASH_ERR_SPI_RECEIVE_TIMEOUT = -11 } |
| enum | FLASH_command_t { FLASH_CMD_PAGE_READ = 0x13 , FLASH_CMD_READ_FROM_CACHE = 0x03 , FLASH_CMD_PROGRAM_LOAD = 0x02 , FLASH_CMD_PROGRAM_EXECUTE = 0x10 , FLASH_CMD_BLOCK_ERASE = 0xD8 , FLASH_CMD_WRITE_ENABLE = 0x06 , FLASH_CMD_WRITE_DISABLE = 0x04 , FLASH_CMD_GET_FEATURES = 0x0F , FLASH_CMD_SET_FEATURES = 0x1F , FLASH_CMD_READ_ID = 0x9F , FLASH_CMD_RESET = 0xFF } |
Functions | |
| FLASH_error_enum_t | FLASH_SPI_send_command (const FLASH_SPI_Data_t cmd[], uint8_t chip_number) |
| FLASH_error_enum_t | FLASH_SPI_send_command_with_data (const FLASH_SPI_Data_t cmd[], FLASH_SPI_Data_t *data, uint8_t chip_number) |
| FLASH_error_enum_t | FLASH_SPI_send_command_receive_response (const FLASH_SPI_Data_t cmd[], uint8_t *response, uint16_t response_size, uint8_t chip_number) |
| void | FLASH_SPI_enable_then_disable_chip_select (uint8_t chip_number) |
| enum FLASH_command_t |
| enum FLASH_error_enum_t |
| void FLASH_SPI_enable_then_disable_chip_select | ( | uint8_t | chip_number | ) |


| FLASH_error_enum_t FLASH_SPI_send_command | ( | const FLASH_SPI_Data_t | cmd[], |
| uint8_t | chip_number ) |


| FLASH_error_enum_t FLASH_SPI_send_command_receive_response | ( | const FLASH_SPI_Data_t | cmd[], |
| uint8_t * | response, | ||
| uint16_t | response_size, | ||
| uint8_t | chip_number ) |


| FLASH_error_enum_t FLASH_SPI_send_command_with_data | ( | const FLASH_SPI_Data_t | cmd[], |
| FLASH_SPI_Data_t * | data, | ||
| uint8_t | chip_number ) |

