Home
last modified time | relevance | path

Searched refs:byte_ofs (Results 1 – 2 of 2) sorted by relevance

/hal_microchip-latest/mec5/drivers/
Dmec_vbat.c73 int mec_hal_bbram_rd8(uint16_t byte_ofs, uint8_t *val) in mec_hal_bbram_rd8() argument
75 if (!val || (byte_ofs >= MEC_VBAT_MEM_SIZE)) { in mec_hal_bbram_rd8()
79 *val = MEC_VBATM->VBMEM[byte_ofs]; in mec_hal_bbram_rd8()
84 int mec_hal_bbram_wr8(uint16_t byte_ofs, uint8_t val) in mec_hal_bbram_wr8() argument
86 if (byte_ofs >= MEC_VBAT_MEM_SIZE) { in mec_hal_bbram_wr8()
90 MEC_VBATM->VBMEM[byte_ofs] = val; in mec_hal_bbram_wr8()
95 int mec_hal_bbram_rd32(uint16_t byte_ofs, uint32_t *val) in mec_hal_bbram_rd32() argument
99 if (!val || (byte_ofs >= MEC_VBAT_MEM_SIZE)) { in mec_hal_bbram_rd32()
103 if (!(byte_ofs & 0x3u)) { in mec_hal_bbram_rd32()
104 r = MEC_MMCR32(&MEC_VBATM->VBMEM[byte_ofs]); in mec_hal_bbram_rd32()
[all …]
Dmec_vbat_api.h57 int mec_hal_bbram_rd8(uint16_t byte_ofs, uint8_t *val);
58 int mec_hal_bbram_wr8(uint16_t byte_ofs, uint8_t val);
60 int mec_hal_bbram_rd32(uint16_t byte_ofs, uint32_t *val);
61 int mec_hal_bbram_wr32(uint16_t byte_ofs, uint32_t val);
63 int mec_hal_bbram_rd(uint16_t byte_ofs, uint8_t *data, size_t datasz, size_t *nread);
64 int mec_hal_bbram_wr(uint16_t byte_ofs, uint8_t *data, size_t datasz, size_t *nwritten);