LibDriver MB85RCXX
Loading...
Searching...
No Matches
driver_mb85rcxx.h File Reference

driver mb85rcxx header file More...

#include <stdio.h>
#include <stdint.h>
#include <string.h>
Include dependency graph for driver_mb85rcxx.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  mb85rcxx_handle_s
 mb85rcxx handle structure definition More...
struct  mb85rcxx_info_s
 mb85rcxx information structure definition More...

Macros

#define DRIVER_MB85RCXX_LINK_INIT(HANDLE, STRUCTURE)
 initialize mb85rcxx_handle_t structure
#define DRIVER_MB85RCXX_LINK_IIC_INIT(HANDLE, FUC)
 link iic_init function
#define DRIVER_MB85RCXX_LINK_IIC_DEINIT(HANDLE, FUC)
 link iic_deinit function
#define DRIVER_MB85RCXX_LINK_IIC_READ(HANDLE, FUC)
 link iic_read function
#define DRIVER_MB85RCXX_LINK_IIC_WRITE(HANDLE, FUC)
 link iic_write function
#define DRIVER_MB85RCXX_LINK_IIC_READ_ADDRESS16(HANDLE, FUC)
 link iic_read_address16 function
#define DRIVER_MB85RCXX_LINK_IIC_WRITE_ADDRESS16(HANDLE, FUC)
 link iic_write_address16 function
#define DRIVER_MB85RCXX_LINK_DELAY_MS(HANDLE, FUC)
 link delay_ms function
#define DRIVER_MB85RCXX_LINK_DEBUG_PRINT(HANDLE, FUC)
 link debug_print function

Typedefs

typedef struct mb85rcxx_handle_s mb85rcxx_handle_t
 mb85rcxx handle structure definition
typedef struct mb85rcxx_info_s mb85rcxx_info_t
 mb85rcxx information structure definition

Enumerations

enum  mb85rcxx_t {
  MB85RC04 = 512 , MB85RC16 = 2048 , MB85RC64 = 8192 , MB85RC128 = 16384 ,
  MB85RC256 = 32768 , MB85RC512 = 65536 , MB85RC1M = 131072
}
 mb85rcxx type enumeration definition More...
enum  mb85rcxx_address_t {
  MB85RCXX_ADDRESS_A000 = 0 , MB85RCXX_ADDRESS_A001 = 1 , MB85RCXX_ADDRESS_A010 = 2 , MB85RCXX_ADDRESS_A011 = 3 ,
  MB85RCXX_ADDRESS_A100 = 4 , MB85RCXX_ADDRESS_A101 = 5 , MB85RCXX_ADDRESS_A110 = 6 , MB85RCXX_ADDRESS_A111 = 7
}
 mb85rcxx address enumeration definition More...

Functions

uint8_t mb85rcxx_info (mb85rcxx_info_t *info)
 get chip's information
uint8_t mb85rcxx_init (mb85rcxx_handle_t *handle)
 initialize the chip
uint8_t mb85rcxx_deinit (mb85rcxx_handle_t *handle)
 close the chip
uint8_t mb85rcxx_set_type (mb85rcxx_handle_t *handle, mb85rcxx_t type)
 set the chip type
uint8_t mb85rcxx_get_type (mb85rcxx_handle_t *handle, mb85rcxx_t *type)
 get the chip type
uint8_t mb85rcxx_set_addr_pin (mb85rcxx_handle_t *handle, mb85rcxx_address_t addr_pin)
 set the chip address pin
uint8_t mb85rcxx_get_addr_pin (mb85rcxx_handle_t *handle, mb85rcxx_address_t *addr_pin)
 get the chip address pin
uint8_t mb85rcxx_read (mb85rcxx_handle_t *handle, uint32_t address, uint8_t *buf, uint16_t len)
 read bytes from the chip
uint8_t mb85rcxx_write (mb85rcxx_handle_t *handle, uint32_t address, uint8_t *buf, uint16_t len)
 write bytes to the chip

Detailed Description

driver mb85rcxx header file

Copyright (c) 2015 - present LibDriver All rights reserved

The MIT License (MIT)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Version
1.0.0
Author
Shifeng Li
Date
2025-10-15

history

Date Version Author Description
2025/10/15 1.0 Shifeng Li first upload

Definition in file driver_mb85rcxx.h.