Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: BufferedSerial FatFileSystemCpp mbed
FIZ_readers/FIZCanon.h
- Committer:
- JamieB
- Date:
- 2021-07-21
- Revision:
- 29:b0eaeefa4e63
- Child:
- 30:87810cae96ac
File content as of revision 29:b0eaeefa4e63:
#ifndef __FIZCanon_H__
#define __FIZCanon_H__
#include "FIZReader.h"
//FIZ protocol used for Canon Lens.
class FIZCanon : public FIZReader
{
public:
FIZCanon(const PinName Tx, const PinName Rx);
virtual void requestCurrent();
private:
static const int InBufferSize = 32;
void OnRx(void);
void parsePacket();
int missedPackets;
uint8_t inputBuffer[InBufferSize];
int inputPtr;
};
#endif