VIRTUTECH CONFIDENTIAL Previous - Up - Next
microwire
- Implemented By
-
microwire-eeprom
- Description
-
This interface is used to communicate with a 3-wire (microwire) serial EEPROM device, for example, the 93Cxx series, via its pins. To set the values of the CS, SK, and DI pins, use the set_cs(), set_sk(), and set_di() functions, respectively. To read the value output on the DO pin, use the get_do() function. Zero represents low signal and non-zero high signal.
#define MICROWIRE_INTERFACE "microwire"
typedef struct {
void (*set_cs)(conf_object_t *obj, int cs);
void (*set_sk)(conf_object_t *obj, int sk);
void (*set_di)(conf_object_t *obj, int di);
int (*get_do)(conf_object_t *obj);
} microwire_interface_t;
VIRTUTECH CONFIDENTIAL Previous - Up - Next