C API for BALTECH SDK
lg.h
Go to the documentation of this file.
1 
14 #ifndef __BRP_BALTECH_API_CMDS_LG_H__
15 #define __BRP_BALTECH_API_CMDS_LG_H__
16 #include "../typedefs.h"
21 #define BRP_Lg_ErrNomim BRP_ERR_STATUS(0x1100, 0x01)
22 
33 #define BRP_Lg_ErrInvalidCmd BRP_ERR_STATUS(0x1100, 0x02)
34 
42 #define BRP_Lg_ErrAccessDenied BRP_ERR_STATUS(0x1100, 0x03)
43 
50 #define BRP_Lg_ErrHf BRP_ERR_STATUS(0x1100, 0x04)
51 
63 #define BRP_Lg_ErrDataCorrupt BRP_ERR_STATUS(0x1100, 0x05)
64 
71 #define BRP_Lg_ErrCrc BRP_ERR_STATUS(0x1100, 0x06)
72 
80 #define BRP_Lg_ErrCommunication BRP_ERR_STATUS(0x1100, 0x07)
81 
85 #define BRP_Lg_ErrMimCorrupt BRP_ERR_STATUS(0x1100, 0x08)
86 
91 #define BRP_Lg_ErrBusy BRP_ERR_STATUS(0x1100, 0x09)
92 
96 #define BRP_Lg_NotInitialized BRP_ERR_STATUS(0x1100, 0x0A)
97 
170 brp_errcode brp_Lg_Select(brp_protocol protocol, unsigned TO, unsigned Adr, unsigned Len, unsigned PollTime, unsigned CRCAdr, unsigned SafeDat, unsigned ChgSeg, unsigned ProtHead, unsigned CRCCalc, unsigned CRCChk, unsigned SegID, brp_buf Stamp, size_t Stamp_len, brp_Lg_Select_MediaType* MediaType, unsigned* FuncLevel, unsigned* OrgLevel, brp_Lg_Select_EvStat* EvStat, unsigned* ActSegID, unsigned* ActAdr, brp_buf* Data, size_t* Data_len, brp_mempool *mempool);
201 brp_errcode brp_Lg_GenSetRead(brp_protocol protocol, unsigned DesiredGenSetNum, unsigned* GenSetNum, brp_buf* Stamp, unsigned* StampLen, unsigned* WriteExLen, bool* WriteExShad, brp_Lg_GenSetRead_WriteExMode* WriteExMode, unsigned* WriteExStart, brp_mempool *mempool);
212 brp_errcode brp_Lg_GenSetDelete(brp_protocol protocol, unsigned GenSetNum, unsigned* DeletedGenSetNum);
227 brp_errcode brp_Lg_ReadMIM(brp_protocol protocol, unsigned Adr, unsigned Len, unsigned* DataAdr, brp_buf* Data, size_t* Data_len, brp_mempool *mempool);
247 brp_errcode brp_Lg_ReadMIMCRC(brp_protocol protocol, unsigned Adr, unsigned Len, unsigned CRCAdr, unsigned* DataAdr, brp_buf* Data, size_t* Data_len, brp_mempool *mempool);
258 brp_errcode brp_Lg_WriteMIM(brp_protocol protocol, unsigned Adr, brp_buf Data, size_t Data_len);
276 brp_errcode brp_Lg_WriteMIMCRC(brp_protocol protocol, unsigned Adr, unsigned DataLen, unsigned CRCAdr, brp_buf Data, size_t Data_len);
290 brp_errcode brp_Lg_MakeMIMCRC(brp_protocol protocol, unsigned Adr, unsigned Len, unsigned CRCAdr);
306 brp_errcode brp_Lg_ReadSMStatus(brp_protocol protocol, brp_buf* RFU, unsigned* SWV, unsigned* SmStat, unsigned* HfPow, bool* NoMIM, brp_Lg_ReadSMStatus_MIMVersion* MIMVersion, brp_mempool *mempool);
336 #endif
337 
brp_Lg_Select_EvStat
Definition: typedefs.h:1878
brp_errcode brp_Lg_WriteMIM(brp_protocol protocol, unsigned Adr, brp_buf Data, size_t Data_len)
brp_errcode brp_Lg_GenSetDelete(brp_protocol protocol, unsigned GenSetNum, unsigned *DeletedGenSetNum)
unsigned int brp_errcode
This type is used library-wide for passing error codes in the return value of functions.
Definition: errorcodes.h:23
brp_Lg_SetPassword_PwdStat
Definition: typedefs.h:1987
brp_errcode brp_Lg_ReadMIM(brp_protocol protocol, unsigned Adr, unsigned Len, unsigned *DataAdr, brp_buf *Data, size_t *Data_len, brp_mempool *mempool)
struct brp_protocol_t * brp_protocol
This is a generic handle of a protocol.
Definition: protocol.h:34
brp_errcode brp_Lg_WriteMIMCRC(brp_protocol protocol, unsigned Adr, unsigned DataLen, unsigned CRCAdr, brp_buf Data, size_t Data_len)
brp_Lg_Lock_PwdStat
Definition: typedefs.h:2006
brp_Lg_Unlock_PwdStat
Definition: typedefs.h:2021
brp_errcode brp_Lg_Select(brp_protocol protocol, unsigned TO, unsigned Adr, unsigned Len, unsigned PollTime, unsigned CRCAdr, unsigned SafeDat, unsigned ChgSeg, unsigned ProtHead, unsigned CRCCalc, unsigned CRCChk, unsigned SegID, brp_buf Stamp, size_t Stamp_len, brp_Lg_Select_MediaType *MediaType, unsigned *FuncLevel, unsigned *OrgLevel, brp_Lg_Select_EvStat *EvStat, unsigned *ActSegID, unsigned *ActAdr, brp_buf *Data, size_t *Data_len, brp_mempool *mempool)
struct brp_mempool_object_t * brp_mempool
mempool handle.
Definition: mempool.h:27
brp_errcode brp_Lg_ReadMIMCRC(brp_protocol protocol, unsigned Adr, unsigned Len, unsigned CRCAdr, unsigned *DataAdr, brp_buf *Data, size_t *Data_len, brp_mempool *mempool)
brp_errcode brp_Lg_Idle(brp_protocol protocol, brp_Lg_Idle_PowOff PowOff)
brp_Lg_ReadSMStatus_MIMVersion
Definition: typedefs.h:1968
brp_errcode brp_Lg_SetPassword(brp_protocol protocol, brp_buf Password, brp_Lg_SetPassword_PwdStat *PwdStat)
brp_Lg_Idle_PowOff
Definition: typedefs.h:1925
brp_errcode brp_Lg_ReadSMStatus(brp_protocol protocol, brp_buf *RFU, unsigned *SWV, unsigned *SmStat, unsigned *HfPow, bool *NoMIM, brp_Lg_ReadSMStatus_MIMVersion *MIMVersion, brp_mempool *mempool)
brp_Lg_GenSetRead_WriteExMode
Definition: typedefs.h:1945
brp_errcode brp_Lg_Lock(brp_protocol protocol, brp_Lg_Lock_PwdStat *PwdStat)
unsigned char * brp_buf
represents a pointer to a protocol data buffer.
Definition: common.h:61
brp_errcode brp_Lg_Unlock(brp_protocol protocol, brp_buf Password, brp_Lg_Unlock_PwdStat *PwdStat)
brp_errcode brp_Lg_GenSetRead(brp_protocol protocol, unsigned DesiredGenSetNum, unsigned *GenSetNum, brp_buf *Stamp, unsigned *StampLen, unsigned *WriteExLen, bool *WriteExShad, brp_Lg_GenSetRead_WriteExMode *WriteExMode, unsigned *WriteExStart, brp_mempool *mempool)
brp_errcode brp_Lg_MakeMIMCRC(brp_protocol protocol, unsigned Adr, unsigned Len, unsigned CRCAdr)
brp_Lg_Select_MediaType
Definition: typedefs.h:1847