maix::ext_dev::bm8563

maix.ext_dev.bm8563 module

This is maix::ext_dev::bm8563 module of MaixCDK.
All of these elements are in namespace maix::ext_dev::bm8563.

For MaixCDK developer: DO NOT edit this doc file manually, this doc is auto generated!

Module

No module

Enum

Variable

Function

Class

BM8563

Peripheral BM8563 class

C++ defination code:

class BM8563

__init__

BM8563 constructor

item description
type func
param i2c_bus: i2c bus number.
static False

C++ defination code:

BM8563(int i2c_bus=-1)

datetime

Get or set the date and time of the BM8563.

item description
type func
param timetuple: time tuple, like (year, month, day[, hour[, minute[, second]]])
return time tuple, like (year, month, day[, hour[, minute[, second]]])
static False

C++ defination code:

std::vector<int> datetime(std::vector<int> timetuple=std::vector<int>())

init

Initialise the BM8563.

item description
type func
param timetuple: time tuple, like (year, month, day[, hour[, minute[, second]]])
return err::Err type, if init success, return err::ERR_NONE
static False

C++ defination code:

err::Err init(std::vector<int> timetuple)

now

Get get the current datetime.

item description
type func
return time tuple, like (year, month, day[, hour[, minute[, second]]])
static False

C++ defination code:

std::vector<int> now()

deinit

Deinit the BM8563.

item description
type func
return err::Err err::Err type, if deinit success, return err::ERR_NONE
static False

C++ defination code:

err::Err deinit()

hctosys

Set the system time from the BM8563

item description
type func
return err::Err type
static False

C++ defination code:

err::Err hctosys()

systohc

Set the BM8563 from the system time

item description
type func
return err::Err type
static False

C++ defination code:

err::Err systohc()