|
|
@@ -27,21 +27,6 @@ typedef struct _onewire_ec20_{
|
|
|
uint8_t ROM[8];
|
|
|
}OneWire_EC20_typeDef;
|
|
|
|
|
|
-typedef struct{
|
|
|
- uint8_t (*init)(GPIO_TypeDef*, uint16_t);
|
|
|
- uint32_t (*read_word)(uint16_t);
|
|
|
- uint16_t (*read_half_word)(uint16_t);
|
|
|
- /**
|
|
|
- * @brief Zapíše 4B hodnotu na adresu
|
|
|
- * @param uint32_t data dáta
|
|
|
- * @param uint16_t address adresa v pamati. Povolený rozsah: 0-0x09FF
|
|
|
- */
|
|
|
- uint8_t (*write_word)(uint32_t data, uint16_t address);
|
|
|
- uint8_t (*write_half_word)(uint16_t, uint16_t);
|
|
|
-}Ec20_MemoryDriver;
|
|
|
-
|
|
|
-
|
|
|
-Ec20_MemoryDriver *getEc20MemoryDriver();
|
|
|
|
|
|
uint8_t DS28EC20_init(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin);
|
|
|
void DS28EC20_readMem(uint16_t,uint8_t);
|