Prusa MINI Firmware overview
|
#include <inttypes.h>
Go to the source code of this file.
◆ st25dv64k_init()
74 uint8_t pwd[] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff };
◆ st25dv64k_user_read()
uint8_t st25dv64k_user_read |
( |
uint16_t |
address | ) |
|
◆ st25dv64k_user_write()
void st25dv64k_user_write |
( |
uint16_t |
address, |
|
|
uint8_t |
data |
|
) |
| |
◆ st25dv64k_user_read_bytes()
void st25dv64k_user_read_bytes |
( |
uint16_t |
address, |
|
|
void * |
pdata, |
|
|
uint8_t |
size |
|
) |
| |
◆ st25dv64k_user_write_bytes()
void st25dv64k_user_write_bytes |
( |
uint16_t |
address, |
|
|
void * |
pdata, |
|
|
uint8_t |
size |
|
) |
| |
126 if (block_size >
size)
130 memcpy(_out + 2, p, block_size);
◆ st25dv64k_rd_cfg()
uint8_t st25dv64k_rd_cfg |
( |
uint16_t |
address | ) |
|
◆ st25dv64k_wr_cfg()
void st25dv64k_wr_cfg |
( |
uint16_t |
address, |
|
|
uint8_t |
data |
|
) |
| |
◆ st25dv64k_present_pwd()
159 uint8_t _out[19] = { 0x09, 0x00, 0, 0, 0, 0, 0, 0, 0, 0, 0x09, 0, 0, 0, 0, 0, 0, 0, 0 };
161 memcpy(_out + 2,
pwd, 8);
162 memcpy(_out + 11,
pwd, 8);
#define ADDR_READ
Definition: st25dv64k.c:31
#define BLOCK_DELAY
Definition: st25dv64k.c:35
uint8_t st25dv64k_rd_cfg(uint16_t address)
Definition: st25dv64k.c:140
#define DELAY
Definition: st25dv64k.c:38
uint8_t data[8]
Definition: masstorage.h:49
void st25dv64k_wr_cfg(uint16_t address, uint8_t data)
Definition: st25dv64k.c:150
#define REG_ENDA3
Definition: st25dv64k.c:21
void st25dv64k_present_pwd(uint8_t *pwd)
Definition: st25dv64k.c:158
pwd
Definition: auto_build.py:78
static void st25dv64k_unlock(void)
Definition: st25dv64k.c:57
#define REG_ENDA1
Definition: st25dv64k.c:17
static void st25dv64k_lock(void)
Definition: st25dv64k.c:49
#define ADDR_READ_SYS
Definition: st25dv64k.c:33
const uint8_t[]
Definition: 404_html.c:3
UsbDeviceAddress address
Definition: address.h:202
HAL_StatusTypeDef HAL_I2C_Master_Transmit(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t *pData, uint16_t Size, uint32_t Timeout)
uint8_t st25dv64k_initialised
Definition: st25dv64k.c:42
I2C_HandleTypeDef hi2c1
Definition: main.c:77
#define BLOCK_BYTES
Definition: st25dv64k.c:36
#define ADDR_WRITE_SYS
Definition: st25dv64k.c:32
HAL_StatusTypeDef HAL_I2C_Master_Receive(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t *pData, uint16_t Size, uint32_t Timeout)
#define REG_ENDA2
Definition: st25dv64k.c:19
#define HAL_MAX_DELAY
Definition: stm32f4xx_hal_def.h:76
#define ADDR_WRITE
Definition: st25dv64k.c:30
static png_bytep size_t size
Definition: pngwrite.c:2170