Logging function reference
mbr.h
Functions
w_status_t mbr_parse(uint8_t *first_sector, uint8_t partition_type, uint32_t *sector_lba) : To find the starting sector of a given type of partition.
code
This function finds the lba for the partition that matches the partition type provided in the first sector. Put lba as 0 if the corresponding partition cannot be found.
Parameters:
: - **first\_sector** – 512 byte buffer contains content of first sector
- **partition\_type** – The partition type trying to find
- **sector\_lba** – Pointer to the start offset of the sector
Returns:
: w\_status\_t Returns W\_SUCCESS on success, W\_FAILURE if partition cannot be found