Searched refs:CanClient (Results 1 – 3 of 3) sorted by relevance
/ohos5.0/drivers/hdf_core/framework/support/platform/include/can/ |
H A D | can_client.h | 19 struct CanClient; 21 int32_t CanClientCreateByNumber(int32_t busNum, struct CanClient **client); 23 void CanClientDestroy(struct CanClient *client); 25 int32_t CanClientWriteMsg(struct CanClient *client, const struct CanMsg *msg); 27 int32_t CanClientReadMsg(struct CanClient *client, struct CanMsg *msg, uint32_t tms); 29 int32_t CanClientAddFilter(struct CanClient *client, const struct CanFilter *filter); 31 int32_t CanClientDelFilter(struct CanClient *client, const struct CanFilter *filter); 33 int32_t CanClientSetCfg(struct CanClient *client, const struct CanConfig *cfg); 35 int32_t CanClientGetCfg(struct CanClient *client, struct CanConfig *cfg); 37 int32_t CanClientGetState(struct CanClient *client);
|
/ohos5.0/drivers/hdf_core/framework/support/platform/src/can/ |
H A D | can_client.c | 14 struct CanClient { struct 19 static int32_t CanClientAttach(struct CanClient *client, struct CanCntlr *cntlr) in CanClientAttach() argument 30 static int32_t CanClientDetach(struct CanClient *client) in CanClientDetach() 41 static int32_t CanClientCreate(struct CanCntlr *cntlr, struct CanClient **client) in CanClientCreate() 44 struct CanClient *new = NULL; in CanClientCreate() 46 new = (struct CanClient *)OsalMemCalloc(sizeof(*new)); in CanClientCreate() 71 int32_t CanClientCreateByNumber(int32_t busNum, struct CanClient **client) in CanClientCreateByNumber() 91 void CanClientDestroy(struct CanClient *client) in CanClientDestroy() 104 int32_t CanClientWriteMsg(struct CanClient *client, const struct CanMsg *msg) in CanClientWriteMsg() 161 int32_t CanClientGetCfg(struct CanClient *client, struct CanConfig *cfg) in CanClientGetCfg() [all …]
|
H A D | can_if.c | 16 struct CanClient *client = NULL; in CanBusOpen() 27 CanClientDestroy((struct CanClient *)handle); in CanBusClose() 32 return CanClientWriteMsg((struct CanClient *)handle, msg); in CanBusSendMsg() 37 return CanClientReadMsg((struct CanClient *)handle, msg, tms); in CanBusReadMsg() 42 return CanClientAddFilter((struct CanClient *)handle, filter); in CanBusAddFilter() 47 return CanClientDelFilter((struct CanClient *)handle, filter); in CanBusDelFilter() 52 return CanClientSetCfg((struct CanClient *)handle, cfg); in CanBusSetCfg() 57 return CanClientGetCfg((struct CanClient *)handle, cfg); in CanBusGetCfg() 62 return CanClientGetState((struct CanClient *)handle); in CanBusGetState()
|